diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-09-25 04:04:31 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-11 05:45:38 +0200 |
commit | ee297533279a802eac8b1cbea8e65b24b36a1aac (patch) | |
tree | 7d461186acef980755b625f932560552dcd92751 /arch/x86 | |
parent | Linux 2.6.27 (diff) | |
download | linux-ee297533279a802eac8b1cbea8e65b24b36a1aac.tar.xz linux-ee297533279a802eac8b1cbea8e65b24b36a1aac.zip |
ACPI: don't load acpi_cpufreq if acpi=off
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c index dd097b835839..9943b4c87746 100644 --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c @@ -779,6 +779,9 @@ static int __init acpi_cpufreq_init(void) { int ret; + if (acpi_disabled) + return 0; + dprintk("acpi_cpufreq_init\n"); ret = acpi_cpufreq_early_init(); |