Skip to contentSkip to conversation

cpu_idle: fix build break

PATCH New Adrian Bunk 1 participant 1 message Mar 6, 2007 CPU idle time management framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpu_idle: fix build break

From: Venkatesh Pallipadi <[email protected]>

This patch fixes a build breakage with !CONFIG_HOTPLUG_CPU and CONFIG_CPU_IDLE.

---

This patch was sent by Venkatesh Pallipadi on:
- 2 Mar 2007

drivers/cpuidle/cpuidle.c +1 -5
@@ -189,10 +189,6 @@ static struct sysdev_driver cpuidle_sysd
 	.remove		= cpuidle_remove_device,
 };
 
-#ifdef CONFIG_SMP
-
-#ifdef CONFIG_HOTPLUG_CPU
-
 static int cpuidle_cpu_callback(struct notifier_block *nfb,
 					unsigned long action, void *hcpu)
 {
@@ -224,7 +220,7 @@ static struct notifier_block __cpuinitda
     .notifier_call = cpuidle_cpu_callback,
 };
 
-#endif /* CONFIG_HOTPLUG_CPU */
+#ifdef CONFIG_SMP
 
 static void smp_callback(void *v)
 {