From: Yinghai Lu Date: Thu, 25 Sep 2008 02:04:31 +0000 (-0700) Subject: ACPI: don't load acpi_cpufreq if acpi=off X-Git-Tag: v2.6.28-rc1~26^2~9^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ee297533279a802eac8b1cbea8e65b24b36a1aac;p=linux-2.6-omap-h63xx.git ACPI: don't load acpi_cpufreq if acpi=off Signed-off-by: Yinghai Lu Signed-off-by: Len Brown --- diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c index dd097b83583..9943b4c8774 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();