aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/interrupt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r--include/linux/interrupt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index d746da19c6a2..2eb16e03422f 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -427,6 +427,13 @@ extern void raise_softirq(unsigned int nr);
427 */ 427 */
428DECLARE_PER_CPU(struct list_head [NR_SOFTIRQS], softirq_work_list); 428DECLARE_PER_CPU(struct list_head [NR_SOFTIRQS], softirq_work_list);
429 429
430DECLARE_PER_CPU(struct task_struct *, ksoftirqd);
431
432static inline struct task_struct *this_cpu_ksoftirqd(void)
433{
434 return this_cpu_read(ksoftirqd);
435}
436
430/* Try to send a softirq to a remote cpu. If this cannot be done, the 437/* Try to send a softirq to a remote cpu. If this cannot be done, the
431 * work will be queued to the local cpu. 438 * work will be queued to the local cpu.
432 */ 439 */