ChangeSet 1.2065.3.25, 2005/03/12 08:27:23-08:00, [EMAIL PROTECTED]
[PATCH] sched: find_busiest_group cleanup
Cleanup find_busiest_group a bit. New sched-domains code means we
can't have
groups without a CPU.
Signed-off-by: Nick Piggin <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
sched.c | 6 +-----
1 files changed, 1 insertion(+), 5 deletions(-)
diff -Nru a/kernel/sched.c b/kernel/sched.c
--- a/kernel/sched.c 2005-03-12 21:29:55 -08:00
+++ b/kernel/sched.c 2005-03-12 21:29:55 -08:00
@@ -1766,7 +1766,7 @@
do {
unsigned long load;
int local_group;
- int i, nr_cpus = 0;
+ int i;
local_group = cpu_isset(this_cpu, group->cpumask);
@@ -1780,12 +1780,8 @@
else
load = source_load(i);
- nr_cpus++;
avg_load += load;
}
-
- if (!nr_cpus)
- goto nextgroup;
total_load += avg_load;
total_pwr += group->cpu_power;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html