提交 95625b8f 编写于 作者: D Dave Jones

[CPUFREQ] ifdef more unused on !SMP code.

acpi-cpufreq needs the same patch as the previous speedstep-centrino change.
Additionally, the centrino driver can have its ifdef moved out a little
further to eliminate some more code/variables.
Signed-off-by: NDave Jones <davej@redhat.com>
上级 fe0f9602
...@@ -554,6 +554,7 @@ static int acpi_cpufreq_early_init(void) ...@@ -554,6 +554,7 @@ static int acpi_cpufreq_early_init(void)
return 0; return 0;
} }
#ifdef CONFIG_SMP
/* /*
* Some BIOSes do SW_ANY coordination internally, either set it up in hw * Some BIOSes do SW_ANY coordination internally, either set it up in hw
* or do it in BIOS firmware and won't inform about it to OS. If not * or do it in BIOS firmware and won't inform about it to OS. If not
...@@ -580,6 +581,7 @@ static struct dmi_system_id sw_any_bug_dmi_table[] = { ...@@ -580,6 +581,7 @@ static struct dmi_system_id sw_any_bug_dmi_table[] = {
}, },
{ } { }
}; };
#endif
static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
{ {
......
...@@ -379,6 +379,7 @@ static int centrino_cpu_early_init_acpi(void) ...@@ -379,6 +379,7 @@ static int centrino_cpu_early_init_acpi(void)
} }
#ifdef CONFIG_SMP
/* /*
* Some BIOSes do SW_ANY coordination internally, either set it up in hw * Some BIOSes do SW_ANY coordination internally, either set it up in hw
* or do it in BIOS firmware and won't inform about it to OS. If not * or do it in BIOS firmware and won't inform about it to OS. If not
...@@ -392,7 +393,6 @@ static int sw_any_bug_found(struct dmi_system_id *d) ...@@ -392,7 +393,6 @@ static int sw_any_bug_found(struct dmi_system_id *d)
return 0; return 0;
} }
#ifdef CONFIG_SMP
static struct dmi_system_id sw_any_bug_dmi_table[] = { static struct dmi_system_id sw_any_bug_dmi_table[] = {
{ {
.callback = sw_any_bug_found, .callback = sw_any_bug_found,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册