Messages in this thread Patch in this message | | | From | "John Hawkes" <> | Subject | Re: [patch -mm] scheduler cache hot autodetect, isolcpus fix | Date | Mon, 12 Dec 2005 12:20:05 -0800 |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |