Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754754AbZFHKaW (ORCPT ); Mon, 8 Jun 2009 06:30:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753676AbZFHK3z (ORCPT ); Mon, 8 Jun 2009 06:29:55 -0400 Received: from ganesha.gnumonks.org ([213.95.27.120]:46190 "EHLO ganesha.gnumonks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753515AbZFHK3y (ORCPT ); Mon, 8 Jun 2009 06:29:54 -0400 Date: Mon, 8 Jun 2009 18:27:54 +0800 From: Harald Welte To: "Michael S. Zick" Cc: Linus Torvalds , Duane Griffin , Linux Kernel Mailing List , Dave Jones Subject: [PATCH 1/2] CPUFREQ: Enable acpi-cpufreq driver for VIA/Centaur CPUs Message-ID: <20090608102754.GP4106@prithivi.gnumonks.org> References: <20090606132847.GB14088@prithivi.gnumonks.org> <200906060846.36303.lkml@morethan.org> <200906060856.15016.lkml@morethan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200906060856.15016.lkml@morethan.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1191 Lines: 31 The VIA/Centaur C7, C7-M and Nano CPU's all support ACPI based cpu p-states using a MSR interface. The Linux driver just never made use of it, since in addition to the check for the EST flag it also checked if the vendor is Intel. Signed-off-by: Harald Welte --- arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c index 208ecf6..ee03585 100644 --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c @@ -90,7 +90,8 @@ static int check_est_cpu(unsigned int cpuid) { struct cpuinfo_x86 *cpu = &cpu_data(cpuid); - if (cpu->x86_vendor != X86_VENDOR_INTEL || + if ((cpu->x86_vendor != X86_VENDOR_INTEL && + cpu->x86_vendor != X86_VENDOR_CENTAUR) || !cpu_has(cpu, X86_FEATURE_EST)) return 0; -- 1.6.2.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/