]> Git Repo - linux.git/commit
genirq: Minor readablity improvement in irq_wake_thread()
authorAlexander Gordeev <[email protected]>
Wed, 21 Mar 2012 16:22:13 +0000 (17:22 +0100)
committerThomas Gleixner <[email protected]>
Thu, 29 Mar 2012 09:31:52 +0000 (11:31 +0200)
commit69592db298e400a7c175c4dfbe7a086c783f349d
treecd6b3b24af6996612331ebf8cd9fb749c2d19f24
parentb5174fa3a7f4f8f150bfa3b917c92608953dfa0f
genirq: Minor readablity improvement in irq_wake_thread()

exit_irq_thread() clears IRQTF_RUNTHREAD flag and drops the thread's bit in
desc->threads_oneshot then. The bit must not be set again in between and it
does not, since irq_wake_thread() sees PF_EXITING flag first and returns.

Due to above the order or checking PF_EXITING and IRQTF_RUNTHREAD flags in
irq_wake_thread() is important. This change just makes it more visible in the
source code.

Signed-off-by: Alexander Gordeev <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
kernel/irq/handle.c
This page took 0.045682 seconds and 4 git commands to generate.