acpi-cpufreq: remove dead code
PATCH 8/8 acpi-cpufreq: remove dead code
From: Andrew Morton <[email protected]>
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:396: warning: 'sw_any_bug_dmi_table' defined but not used
---
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | 2 ++ 1 files changed, 2 insertions(+)
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c renamed from arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c~acpi-cpufreq-remove-dead-code +2 -0
@@ -402,6 +402,7 @@ static int sw_any_bug_found(struct dmi_sreturn 0 ; } +#ifdef CONFIG_SMP static struct dmi_system_id sw_any_bug_dmi_table[] = { { .callback = sw_any_bug_found,
@@ -414,6 +415,7 @@ static struct dmi_system_id sw_any_bug_d }, { } }; +#endif static int acpi_cpufreq_cpu_init (
_
I would expect to see this same change in both speedstep-centrino.c and acpi-cpufreq.c, no?
Quoted 32 lines · On Friday 20 October 2006 17:30, [email protected] wrote:
From: Andrew Morton <[email protected]>
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c:396: warning: 'sw_any_bug_dmi_table' defined but not usedCc Len Brown <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | 2 ++ 1 files changed, 2 insertions(+)diff -puN
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c~acpi-cpufreq-remove-dead-codearch/i386/kernel/cpu/cpufreq/acpi-cpufreq.carch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c renamed from arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c~acpi-cpufreq-remove-dead-code +2
-0@@ -402,6 +402,7 @@ static int sw_any_bug_found(struct dmi_sreturn 0 ; } +#ifdef CONFIG_SMP static struct dmi_system_id sw_any_bug_dmi_table[] = { { .callback = sw_any_bug_found,@@ -414,6 +415,7 @@ static struct dmi_system_id sw_any_bug_d }, { } }; +#endif static int acpi_cpufreq_cpu_init (_
Quoted 1 line · Len Brown
I would expect to see this same change in both
speedstep-centrino.candacpi-cpufreq.c, no?
Indeed, especially as longterm acpi-cpufreq is going to be the more interesting of the two.
I'll merge this patch up though, and make the acpi-cpufreq change myself.
Thanks,
Dave
Signature · 1 line
http://www.codemonkey.org.uk