lkml.org 
[lkml]   [2005]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 5/13] find_busiest_group cleanup
From
Date
5/13
Cleanup find_busiest_group a bit. New sched-domains code
means we can't have groups without a CPU.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>


Index: linux-2.6/kernel/sched.c
===================================================================
--- linux-2.6.orig/kernel/sched.c 2005-02-24 17:31:29.298502546 +1100
+++ linux-2.6/kernel/sched.c 2005-02-24 17:43:38.629469074 +1100
@@ -1771,7 +1771,7 @@
do {
unsigned long load;
int local_group;
- int i, nr_cpus = 0;
+ int i;

local_group = cpu_isset(this_cpu, group->cpumask);

@@ -1785,13 +1785,9 @@
else
load = source_load(i);

- nr_cpus++;
avg_load += load;
}

- if (!nr_cpus)
- goto nextgroup;
-
total_load += avg_load;
total_pwr += group->cpu_power;
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.084 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site