aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorVenkatesh Pallipadi <venki@google.com>2010-10-04 20:03:18 -0400
committerIngo Molnar <mingo@elte.hu>2010-10-18 14:52:22 -0400
commit6cdd5199daf0cb7b0fcc8dca941af08492612887 (patch)
treead9d632d5731a64d0b1ab6410557415480ffcbfd /include/linux/sched.h
parente1e10a265d28273ab8c70be19d43dcbdeead6c5a (diff)
sched: Add a PF flag for ksoftirqd identification
To account softirq time cleanly in scheduler, we need to identify whether softirq is invoked in ksoftirqd context or softirq at hardirq tail context. Add PF_KSOFTIRQD for that purpose. As all PF flag bits are currently taken, create space by moving one of the infrequently used bits (PF_THREAD_BOUND) down in task_struct to be along with some other state fields. Signed-off-by: Venkatesh Pallipadi <venki@google.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1286237003-12406-4-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h1
1 files changed, 1 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 */