diff options
author | Dario Faggioli <raistlin@linux.it> | 2010-11-30 13:51:33 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-12-08 14:16:00 -0500 |
commit | 806c09a7db457be3758e14b1f152761135d89af5 (patch) | |
tree | b0fafff45634be80f3caf7227c5d47317f26e0e9 /kernel/sched.c | |
parent | 8e9255e6a2141e050d51bc4d96dbef494a87d653 (diff) |
sched: Make pushable_tasks CONFIG_SMP dependant
As noted by Peter Zijlstra at https://lkml.org/lkml/2010/11/10/391
(while reviewing other stuff, though), tracking pushable tasks
only makes sense on SMP systems.
Signed-off-by: Dario Faggioli <raistlin@linux.it>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1291143093.2697.298.camel@Palantir>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index b646dad4a40e..3925a1bbf5dd 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2595,7 +2595,9 @@ void sched_fork(struct task_struct *p, int clone_flags) | |||
2595 | /* Want to start with kernel preemption disabled. */ | 2595 | /* Want to start with kernel preemption disabled. */ |
2596 | task_thread_info(p)->preempt_count = 1; | 2596 | task_thread_info(p)->preempt_count = 1; |
2597 | #endif | 2597 | #endif |
2598 | #ifdef CONFIG_SMP | ||
2598 | plist_node_init(&p->pushable_tasks, MAX_PRIO); | 2599 | plist_node_init(&p->pushable_tasks, MAX_PRIO); |
2600 | #endif | ||
2599 | 2601 | ||
2600 | put_cpu(); | 2602 | put_cpu(); |
2601 | } | 2603 | } |