OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4001d8e
)
genirq: Fix misleading synchronize_irq() documentation
author
Thomas Gleixner
<tglx@linutronix.de>
Fri, 28 Jun 2019 11:11:50 +0000
(13:11 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Wed, 3 Jul 2019 08:12:29 +0000
(10:12 +0200)
The function might sleep, so it cannot be called from interrupt
context. Not even with care.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link:
https://lkml.kernel.org/r/20190628111440.189241552@linutronix.de
kernel/irq/manage.c
patch
|
blob
|
history
diff --git
a/kernel/irq/manage.c
b/kernel/irq/manage.c
index
dc8b35f
..
44fc505
100644
(file)
--- a/
kernel/irq/manage.c
+++ b/
kernel/irq/manage.c
@@
-96,7
+96,8
@@
EXPORT_SYMBOL(synchronize_hardirq);
* to complete before returning. If you use this function while
* holding a resource the IRQ handler may need you will deadlock.
*
- * This function may be called - with care - from IRQ context.
+ * Can only be called from preemptible code as it might sleep when
+ * an interrupt thread is associated to @irq.
*/
void synchronize_irq(unsigned int irq)
{