Skip to content

Commit

Permalink
[CPUFREQ] ifdef more unused on !SMP code.
Browse files Browse the repository at this point in the history
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: Dave Jones <davej@redhat.com>
  • Loading branch information
Dave Jones committed Oct 21, 2006
1 parent fe0f960 commit 95625b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ static int acpi_cpufreq_early_init(void)
return 0;
}

#ifdef CONFIG_SMP
/*
* 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
Expand All @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* or do it in BIOS firmware and won't inform about it to OS. If not
Expand All @@ -392,7 +393,6 @@ static int sw_any_bug_found(struct dmi_system_id *d)
return 0;
}

#ifdef CONFIG_SMP
static struct dmi_system_id sw_any_bug_dmi_table[] = {
{
.callback = sw_any_bug_found,
Expand Down

0 comments on commit 95625b8

Please sign in to comment.