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