Skip to content

Commit 0c4602f

Browse files
committed
genirq: Add IRQF_NO_THREAD
Some low level interrupts cannot be threaded even when we force thread all interrupt handlers. Add a flag to annotate such interrupts. Add all timer interrupts to this category by default. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <20110223234956.578893460@linutronix.de>
1 parent 9d591ed commit 0c4602f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/linux/interrupt.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
* irq line disabled until the threaded handler has been run.
5959
* IRQF_NO_SUSPEND - Do not disable this IRQ during suspend
6060
* IRQF_FORCE_RESUME - Force enable it on resume even if IRQF_NO_SUSPEND is set
61+
* IRQF_NO_THREAD - Interrupt cannot be threaded
6162
*/
6263
#define IRQF_DISABLED 0x00000020
6364
#define IRQF_SAMPLE_RANDOM 0x00000040
@@ -70,8 +71,9 @@
7071
#define IRQF_ONESHOT 0x00002000
7172
#define IRQF_NO_SUSPEND 0x00004000
7273
#define IRQF_FORCE_RESUME 0x00008000
74+
#define IRQF_NO_THREAD 0x00010000
7375

74-
#define IRQF_TIMER (__IRQF_TIMER | IRQF_NO_SUSPEND)
76+
#define IRQF_TIMER (__IRQF_TIMER | IRQF_NO_SUSPEND | IRQF_NO_THREAD)
7577

7678
/*
7779
* These values can be returned by request_any_context_irq() and

0 commit comments

Comments
 (0)