diff options
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | kernel/softirq.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 8744e50cb083..aca0ce675939 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1682,6 +1682,7 @@ extern void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t * | |||
1682 | /* | 1682 | /* |
1683 | * Per process flags | 1683 | * Per process flags |
1684 | */ | 1684 | */ |
1685 | #define PF_KSOFTIRQD 0x00000001 /* I am ksoftirqd */ | ||
1685 | #define PF_STARTING 0x00000002 /* being created */ | 1686 | #define PF_STARTING 0x00000002 /* being created */ |
1686 | #define PF_EXITING 0x00000004 /* getting shut down */ | 1687 | #define PF_EXITING 0x00000004 /* getting shut down */ |
1687 | #define PF_EXITPIDONE 0x00000008 /* pi exit done on shut down */ | 1688 | #define PF_EXITPIDONE 0x00000008 /* pi exit done on shut down */ |
diff --git a/kernel/softirq.c b/kernel/softirq.c index 988dfbe6bbe8..267f7b763ebb 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
@@ -713,6 +713,7 @@ static int run_ksoftirqd(void * __bind_cpu) | |||
713 | { | 713 | { |
714 | set_current_state(TASK_INTERRUPTIBLE); | 714 | set_current_state(TASK_INTERRUPTIBLE); |
715 | 715 | ||
716 | current->flags |= PF_KSOFTIRQD; | ||
716 | while (!kthread_should_stop()) { | 717 | while (!kthread_should_stop()) { |
717 | preempt_disable(); | 718 | preempt_disable(); |
718 | if (!local_softirq_pending()) { | 719 | if (!local_softirq_pending()) { |