Skip to contentSkip to conversation

- Initialize sched domain table

PATCH In review Jack Steiner 3 participants 3 messages Jul 23, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - Initialize sched domain table

Here is a trivial patch that is required to boot the latest 2.6.7 tree on the SGI 512p system.

Initial the busy_factor in the sched_domain_init table. Otherwise, booting hangs doing excessive load balance operations.

Index: linux/kernel/sched.c =================================--- linux.orig/kernel/sched.c +++ linux/kernel/sched.c
@@ -3922,6 +3922,7 @@ void __init sched_init(void)
sched_domain_init.groups = &sched_group_init; sched_domain_init.last_balance = jiffies; sched_domain_init.balance_interval = INT_MAX; /* Don't balance */
+ sched_domain_init.busy_factor = 1;

memset(&sched_group_init, 0, sizeof(struct sched_group)); sched_group_init.cpumask = CPU_MASK_ALL;

Signature · 4 lines
Thanks

Jack Steiner ([email protected])          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.
#1 lore raw
Quoted 9 lines · Jack Steiner

Here is a trivial patch that is required to boot the latest 2.6.7 tree on the SGI 512p system.

Initial the busy_factor in the sched_domain_init table. Otherwise, booting hangs doing excessive load balance operations.

Thanks. Andrew please apply.

Quoted 13 lines

Index: linux/kernel/sched.c =================================> --- linux.orig/kernel/sched.c +++ linux/kernel/sched.c

(quoted diff) +1 -0
@@ -3922,6 +3922,7 @@ void __init sched_init(void)
 	sched_domain_init.groups = &sched_group_init;
 	sched_domain_init.last_balance = jiffies;
 	sched_domain_init.balance_interval = INT_MAX; /* Don't balance */
+	sched_domain_init.busy_factor = 1;
 
 	memset(&sched_group_init, 0, sizeof(struct sched_group));
 	sched_group_init.cpumask = CPU_MASK_ALL;