aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>2008-12-19 23:36:38 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-23 16:37:29 -0500
commit36dffab679c7eeb91c2507400cf4da6e9e01164e (patch)
tree6ac1a7e2362ba0da6fd93a068c61508d02bcba05 /kernel/sched.c
parentb77b881f21b29aa7efa668fde69ee3dc0372ae3f (diff)
sched: nominate preferred wakeup cpu, fix
Andrew Morton reported: > kernel/sched.c: In function 'schedule': > kernel/sched.c:3679: warning: 'active_balance' may be used uninitialized in this function > > This warning is correct - the code is buggy. In sched.c load_balance_newidle, there's real potential use of uninitialised variable - fix it. Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index ae5ca3f9e776..756d981d91a4 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3670,7 +3670,7 @@ redo:
3670 } 3670 }
3671 3671
3672 if (!ld_moved) { 3672 if (!ld_moved) {
3673 int active_balance; 3673 int active_balance = 0;
3674 3674
3675 schedstat_inc(sd, lb_failed[CPU_NEWLY_IDLE]); 3675 schedstat_inc(sd, lb_failed[CPU_NEWLY_IDLE]);
3676 if (!sd_idle && sd->flags & SD_SHARE_CPUPOWER && 3676 if (!sd_idle && sd->flags & SD_SHARE_CPUPOWER &&