]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] irqstats: fix counting of pfault, dasd diag and virtio irqs
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 29 Apr 2011 08:42:19 +0000 (10:42 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Fri, 29 Apr 2011 08:42:25 +0000 (10:42 +0200)
commit1e0ac09baec9a9b1eda102e4bc421ac1eff1609f
treef5ca038fcc00f5ed2cac37c575aec550e170c65c
parentf913c26a4c7458986f9cde1ece40a76b6ff795d9
[S390] irqstats: fix counting of pfault, dasd diag and virtio irqs

pfault, dasd diag and virtio all use the same external interrupt number.
The respective interrupt handlers decide by the subcode if they are
meant to handle the interrupt.
Counting is currently done before looking at the subcode which means
each handler counts an interrupt even if it is not handling it.
Fix this by moving the kstat code after the code which looks at the
subcode.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/fault.c
drivers/s390/block/dasd_diag.c
drivers/s390/kvm/kvm_virtio.c