don't start the load_balance_monitor when there is only a single cpu. rename the kthread because its currently longer than TASK_COMM_LEN Signed-off-by: Peter Zijlstra --- kernel/sched.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: linux-2.6/kernel/sched.c =================================================================== --- linux-2.6.orig/kernel/sched.c +++ linux-2.6/kernel/sched.c @@ -7070,8 +7070,11 @@ void __init sched_init_smp(void) sched_init_granularity(); #ifdef CONFIG_FAIR_GROUP_SCHED + if (nr_cpu_ids == 1) + return; + lb_monitor_task = kthread_create(load_balance_monitor, NULL, - "load_balance_monitor"); + "group_balance"); if (!IS_ERR(lb_monitor_task)) { lb_monitor_task->flags |= PF_NOFREEZE; wake_up_process(lb_monitor_task); -- -- 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/