]> git.baikalelectronics.ru Git - kernel.git/commit
x86/apic: Modernize the pending interrupt code
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Thu, 1 Mar 2018 05:59:29 +0000 (13:59 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 1 Mar 2018 09:12:20 +0000 (10:12 +0100)
commitafffd18816cf91c0f2c38227883c43a09d5ba4da
treed4b124281b765ebe4be3a0d9dadd05069e9ae6ff
parent8915d200df85b43c6a69e8f860a2d9c4c762fd56
x86/apic: Modernize the pending interrupt code

The pending interrupt check code is old, update the following:

  - Use for_each_set_bit() instead of open coding it
  - Replace printk() with pr_err()
  - Get rid of printk line breaks
  - Make curly braces balanced

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: bhe@redhat.com
Cc: ebiederm@xmission.com
Link: https://lkml.kernel.org/r/20180301055930.2396-3-douly.fnst@cn.fujitsu.com
arch/x86/kernel/apic/apic.c