Commit 00c6dc1c authored by Zwane Mwaikambo's avatar Zwane Mwaikambo Committed by Linus Torvalds

[PATCH] Disable irqbalance for single cpu SMP configurations

This patch disables irqbalance and doesn't spawn a kernel thread for
systems which run SMP kernels and only have one online cpu.
parent 68132d89
...@@ -603,6 +603,12 @@ static int __init balanced_irq_init(void) ...@@ -603,6 +603,12 @@ static int __init balanced_irq_init(void)
c = &boot_cpu_data; c = &boot_cpu_data;
if (irqbalance_disabled) if (irqbalance_disabled)
return 0; return 0;
/* disable irqbalance completely if there is only one processor online */
if (num_online_cpus() < 2) {
irqbalance_disabled = 1;
return 0;
}
/* /*
* Enable physical balance only if more than 1 physical processor * Enable physical balance only if more than 1 physical processor
* is present * is present
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment