Skip to contentSkip to conversation

sched: Reduce stack size in isolated_cpu_setup()

PATCH Applied Mike Travis 2 participants 2 messages Jul 1, 2008 – Jul 18, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: Reduce stack size in isolated_cpu_setup()

Subject: sched: Reduce stack size in isolated_cpu_setup()

* Remove 16k stack requirements in isolated_cpu_setup when NR_CPUS=4096.

(Somehow this patch was misplaced from some months back.)

Based on linux-2.6.tip/master

---
 kernel/sched.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/sched.c +2 -1
@@ -6739,7 +6739,8 @@ static cpumask_t cpu_isolated_map = CPU_
 /* Setup the mask of cpus configured for isolated domains */
 static int __init isolated_cpu_setup(char *str)
 {
-	int ints[NR_CPUS], i;
+	static int __initdata ints[NR_CPUS];
+	int i;
 
 	str = get_options(str, ARRAY_SIZE(ints), ints);
 	cpus_clear(cpu_isolated_map);
Applied
#1 lore raw
Quoted 7 lines · Mike Travis

Subject: sched: Reduce stack size in isolated_cpu_setup()

* Remove 16k stack requirements in isolated_cpu_setup when NR_CPUS=4096.

(Somehow this patch was misplaced from some months back.)

Based on linux-2.6.tip/master

applied to tip/sched/urgent - thanks Mike.

Ingo