rpms/kernel/F-11 linux-2.6-cpufreq-enable-acpi-pstates-on-via.patch, NONE, 1.1 config-x86-generic, 1.75, 1.76 kernel.spec, 1.1635, 1.1636

Chuck Ebbert cebbert at fedoraproject.org
Tue Jun 9 06:51:09 UTC 2009


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14184

Modified Files:
	config-x86-generic kernel.spec 
Added Files:
	linux-2.6-cpufreq-enable-acpi-pstates-on-via.patch 
Log Message:
Add support for ACPI P-states on VIA processors.
Disable the e_powersaver driver.

linux-2.6-cpufreq-enable-acpi-pstates-on-via.patch:

--- NEW FILE linux-2.6-cpufreq-enable-acpi-pstates-on-via.patch ---
From: Harald Welte <laforge at gnumonks.org>
Date: Mon, 8 Jun 2009 10:19:16 +0000 (+0800)
Subject: CPUFREQ: Enable acpi-cpufreq driver for VIA/Centaur CPUs
X-Git-Url: http://git.gnumonks.org/cgi-bin/gitweb.cgi?p=linux-2.6-via.git;a=commitdiff_plain;h=03c869d3e851c585b30d0b1d115546406da2c692

CPUFREQ: Enable acpi-cpufreq driver for VIA/Centaur CPUs

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 <HaraldWelte at viatech.com>
---

diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
index 54b6de2..36d4df2 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;
 


Index: config-x86-generic
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-11/config-x86-generic,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -p -r1.75 -r1.76
--- config-x86-generic	9 Apr 2009 14:01:13 -0000	1.75
+++ config-x86-generic	9 Jun 2009 06:50:38 -0000	1.76
@@ -191,7 +191,8 @@ CONFIG_X86_P4_CLOCKMOD=m
 CONFIG_X86_LONGRUN=y
 # CONFIG_X86_LONGHAUL is not set
 # CONFIG_X86_CPUFREQ_NFORCE2 is not set
-CONFIG_X86_E_POWERSAVER=y
+# e_powersaver is dangerous
+# CONFIG_X86_E_POWERSAVER is not set
 
 CONFIG_X86_SMP=y
 CONFIG_X86_HT=y


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-11/kernel.spec,v
retrieving revision 1.1635
retrieving revision 1.1636
diff -u -p -r1.1635 -r1.1636
--- kernel.spec	9 Jun 2009 03:27:03 -0000	1.1635
+++ kernel.spec	9 Jun 2009 06:50:38 -0000	1.1636
@@ -760,9 +760,10 @@ Patch9000: hpet-fixes.patch
 Patch9001: revert-fix-modules_install-via-nfs.patch
 
 Patch9002: cpufreq-add-atom-to-p4-clockmod.patch
+Patch9003: linux-2.6-cpufreq-enable-acpi-pstates-on-via.patch
 
 #Adding dropwatch into rawhide until we get to 2.6.30
-Patch9003: linux-2.6-dropwatch-protocol.patch
+Patch9200: linux-2.6-dropwatch-protocol.patch
 
 # kvm fixes
 Patch9303: linux-2.6-kvm-skip-pit-check.patch
@@ -1429,6 +1430,7 @@ ApplyPatch hpet-fixes.patch
 ApplyPatch revert-fix-modules_install-via-nfs.patch
 
 ApplyPatch cpufreq-add-atom-to-p4-clockmod.patch
+ApplyPatch linux-2.6-cpufreq-enable-acpi-pstates-on-via.patch
 
 ApplyPatch linux-2.6-dropwatch-protocol.patch
 
@@ -1442,7 +1444,6 @@ ApplyPatch kvm-Fix-PDPTR-reloading-on-CR
 ApplyPatch kvm-Make-paravirt-tlb-flush-also-reload-the-PAE-PDP.patch
 
 
-
 # END OF PATCH APPLICATIONS
 
 %endif
@@ -2029,6 +2030,10 @@ fi
 # and build.
 
 %changelog
+* Tue Jun  9 2009 Chuck Ebbert <cebbert at redhat.com> - 2.6.29.4-174
+- Add support for ACPI P-states on VIA processors.
+- Disable the e_powersaver driver.
+
 * Mon Jun  8 2009 Chuck Ebbert <cebbert at redhat.com> - 2.6.29.4-173
 - Add linux-2.6-ptrace-fix-possible-zombie-leak.patch
   Fixes bug #481753, ptraced processes fail to deliver exit notification to parent




More information about the fedora-extras-commits mailing list