From patchwork Mon Nov 16 23:32:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60529 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAGNZwms011139 for ; Mon, 16 Nov 2009 23:35:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755941AbZKPXfd (ORCPT ); Mon, 16 Nov 2009 18:35:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755917AbZKPXfO (ORCPT ); Mon, 16 Nov 2009 18:35:14 -0500 Received: from acsinet12.oracle.com ([141.146.126.234]:38667 "EHLO acsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754347AbZKPXfL (ORCPT ); Mon, 16 Nov 2009 18:35:11 -0500 Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nAGNY0Up022306 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 Nov 2009 23:34:02 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nAFLgHfd023198; Mon, 16 Nov 2009 23:34:20 GMT Received: from abhmt016.oracle.com by acsmt355.oracle.com with ESMTP id 372913091258414364; Mon, 16 Nov 2009 15:32:44 -0800 Received: from chimera.site (/96.253.169.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 16 Nov 2009 15:32:43 -0800 Date: Mon, 16 Nov 2009 15:32:42 -0800 From: Randy Dunlap To: Stephen Rothwell , lenb@kernel.org, cpufreq@vger.kernel.org, akpm Cc: linux-next@vger.kernel.org, LKML , linux-acpi@vger.kernel.org, davej@redhat.com Subject: [PATCH -next] x86/cpufreq: don't use acpi_processor_get_bios_limit when not available Message-Id: <20091116153242.3c194a5a.randy.dunlap@oracle.com> In-Reply-To: <20091116181453.b42247cf.sfr@canb.auug.org.au> References: <20091116181453.b42247cf.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.12.0; x86_64-unknown-linux-gnu) Mime-Version: 1.0 X-Source-IP: acsmt357.oracle.com [141.146.40.157] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4B01E17B.018A:SCFMA4539814,ss=1,fgs=0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org --- linux-next-20091113.orig/arch/x86/kernel/cpu/cpufreq/powernow-k7.c +++ linux-next-20091113/arch/x86/kernel/cpu/cpufreq/powernow-k7.c @@ -717,7 +717,9 @@ static struct cpufreq_driver powernow_dr .verify = powernow_verify, .target = powernow_target, .get = powernow_get, +#ifdef CONFIG_X86_POWERNOW_K7_ACPI .bios_limit = acpi_processor_get_bios_limit, +#endif .init = powernow_cpu_init, .exit = powernow_cpu_exit, .name = "powernow-k7",