diff options
| author | Frederic Weisbecker <[email protected]> | 2012-11-07 21:03:07 +0100 |
|---|---|---|
| committer | Frederic Weisbecker <[email protected]> | 2012-11-17 19:30:39 +0100 |
| commit | 00b42959106a9ca1c2899e591ae4e9a83ad6af05 (patch) | |
| tree | 7dd755a813fe7a7fe635082fc5010eb73725f2fe /include/linux | |
| parent | 33a5f6261a61af28f7b4c86f9f958da0f206c914 (diff) | |
irq_work: Don't stop the tick with pending works
Don't stop the tick if we have pending irq works on the
queue, otherwise if the arch can't raise self-IPIs, we may not
find an opportunity to execute the pending works for a while.
Signed-off-by: Frederic Weisbecker <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/irq_work.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h index 6a9e8f5399e2..a69704f37204 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -20,4 +20,10 @@ bool irq_work_queue(struct irq_work *work); void irq_work_run(void); void irq_work_sync(struct irq_work *work); +#ifdef CONFIG_IRQ_WORK +bool irq_work_needs_cpu(void); +#else +static bool irq_work_needs_cpu(void) { return false; } +#endif + #endif /* _LINUX_IRQ_WORK_H */ |