]> bbs.cooldavid.org Git - net-next-2.6.git/commit - kernel/softirq.c
sched: Add a PF flag for ksoftirqd identification
authorVenkatesh Pallipadi <venki@google.com>
Tue, 5 Oct 2010 00:03:18 +0000 (17:03 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Oct 2010 18:52:22 +0000 (20:52 +0200)
commit6cdd5199daf0cb7b0fcc8dca941af08492612887
treead9d632d5731a64d0b1ab6410557415480ffcbfd
parente1e10a265d28273ab8c70be19d43dcbdeead6c5a
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>
include/linux/sched.h
kernel/softirq.c