lkml.org 
[lkml]   [2005]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [patch -mm] scheduler cache hot autodetect, isolcpus fix
Date
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/

\
 
 \ /
  Last update: 2005-12-12 21:24    [W:0.059 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site