[PATCH] sched: fix unused variable warning when !CONFIG_SMP

From: Baruch Siach
Date: Mon Feb 08 2010 - 01:19:56 EST


This variable was introduced by fabf318e.

Signed-off-by: Baruch Siach <baruch@xxxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
---
kernel/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 3a8fb30..c9d9dff 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2647,9 +2647,9 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
{
unsigned long flags;
struct rq *rq;
+#ifdef CONFIG_SMP
int cpu = get_cpu();

-#ifdef CONFIG_SMP
/*
* Fork balancing, do it here and not earlier because:
* - cpus_allowed can change in the fork path
--
1.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/