提交 272f01bf 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[S390] irq: fix accounting of external call/emergency signal

Mask the extint_code parameter of the smp external interrupt handler
to get the interruption code. Otherwise emergency call interrupts
erroneously might be accounted as emergency signal interrupts.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 371de6e4
...@@ -187,7 +187,7 @@ static void do_ext_call_interrupt(unsigned int ext_int_code, ...@@ -187,7 +187,7 @@ static void do_ext_call_interrupt(unsigned int ext_int_code,
{ {
unsigned long bits; unsigned long bits;
if (ext_int_code == 0x1202) if ((ext_int_code & 0xffff) == 0x1202)
kstat_cpu(smp_processor_id()).irqs[EXTINT_EXC]++; kstat_cpu(smp_processor_id()).irqs[EXTINT_EXC]++;
else else
kstat_cpu(smp_processor_id()).irqs[EXTINT_EMS]++; kstat_cpu(smp_processor_id()).irqs[EXTINT_EMS]++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部