summaryrefslogtreecommitdiff
path: root/include/linux/init_task.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2002-07-23 22:17:36 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-07-23 22:17:36 -0700
commit97db62cc99a0d92650fbf23b7fbc034107eb01f3 (patch)
treea708e1efa64cb8020b108b949857358e0a1cf19b /include/linux/init_task.h
parent9e7cec8858f964d3be10e2f703c841cf05871e09 (diff)
[PATCH] scheduler fixes
- introduce new type of context-switch locking, this is a must-have for ia64 and sparc64. - load_balance() bug noticed by Scott Rhine and myself: scan the whole list to find imbalance number of tasks, not just the tail of the list. - sched_yield() fix: use current->array not rq->active.
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r--include/linux/init_task.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 4fcbad0862b8..56c6b7181796 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -47,7 +47,7 @@
lock_depth: -1, \
prio: MAX_PRIO-20, \
static_prio: MAX_PRIO-20, \
- policy: SCHED_OTHER, \
+ policy: SCHED_NORMAL, \
cpus_allowed: -1, \
mm: NULL, \
active_mm: &init_mm, \
@@ -78,6 +78,7 @@
pending: { NULL, &tsk.pending.head, {{0}}}, \
blocked: {{0}}, \
alloc_lock: SPIN_LOCK_UNLOCKED, \
+ switch_lock: SPIN_LOCK_UNLOCKED, \
journal_info: NULL, \
}