Re: [patch -mm] scheduler cache hot autodetect, isolcpus fix

From: John Hawkes
Date: Mon Dec 12 2005 - 15:21:23 EST


I'm looking at 2.6.15-rc5-mm2 and there is still a problem: the
migration_cost[] array is disappearing after boot, which leads to completely
bogus migration_cost[] values when dynamic sched domains are declared.

The fix:

Index: linux/kernel/sched.c
==========================================================
--- linux.orig/kernel/sched.c 2005-12-12 10:30:24.000000000 -0800
+++ linux/kernel/sched.c 2005-12-12 11:25:27.000000000 -0800
@@ -5279,7 +5279,7 @@
*/
#define MAX_DOMAIN_DISTANCE 32

-static __initdata unsigned long long migration_cost[MAX_DOMAIN_DISTANCE] =
+static unsigned long long migration_cost[MAX_DOMAIN_DISTANCE] =
{ [ 0 ... MAX_DOMAIN_DISTANCE-1 ] = -1LL };

/*

-
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/