cpufreq/linux/arch/i386/kernel/cpufreq Kconfig, 1.12, 1.13 Makefile, 1.16, 1.17 acpi.c, 1.11, 1.12 elanfreq.c, 1.32, 1.33 gx-suspmod.c, 1.10, 1.11 longhaul.c, 1.95, 1.96 longhaul.h, 1.2, 1.3 longrun.c, 1.30, 1.31 p4-clockmod.c, 1.45, 1.46 powernow-k6.c, 1.53, 1.54 powernow-k7.c, 1.48, 1.49 powernow-k7.h, 1.3, 1.4 powernow-k8.c, 1.3, 1.4 powernow-k8.h, 1.2, 1.3 speedstep-centrino.c, 1.4, 1.5 speedstep-ich.c, 1.7, 1.8 speedstep-lib.c, 1.3, 1.4 speedstep-lib.h, 1.2, 1.3 speedstep-smi.c, 1.4, 1.5
Update of /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq In directory flint:/tmp/cvs-serv26017/linux/arch/i386/kernel/cpufreq
Modified Files:
Kconfig Makefile acpi.c elanfreq.c gx-suspmod.c longhaul.c longhaul.h longrun.c p4-clockmod.c powernow-k6.c powernow-k7.c powernow-k7.h powernow-k8.c powernow-k8.h speedstep-centrino.c speedstep-ich.c speedstep-lib.c speedstep-lib.h speedstep-smi.c
Log Message:
merge with current cpufreq bk tree and 2.6.9-r1
Index: Kconfig
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/Kconfig,v retrieving revision 1.12
retrieving revision 1.13
Kconfig +66 -31
@@ -11,8 +11,8 @@ fly. This is a nice method to save battery power on notebooks, because the lower the clock speed, the less power the CPU consumes. - For more information, take a look at linux/Documentation/cpu-freq or - at <http://www.codemonkey.org.uk/projects/cpufreq/> + For more information, take a look at <file:Documentation/cpu-freq/> + or at <http://www.codemonkey.org.uk/projects/cpufreq/> If in doubt, say N.
@@ -38,7 +38,7 @@ This driver adds a CPUFreq driver which utilizes the ACPI Processor Performance States. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
@@ -54,7 +54,7 @@ config ELAN_CPUFREQ tristate "AMD Elan" - depends on CPU_FREQ_TABLE && MELAN + depends on CPU_FREQ_TABLE && X86_ELAN ---help--- This adds the CPUFreq driver for AMD Elan SC400 and SC410 processors.
@@ -63,7 +63,7 @@ parameter: elanfreq=maxspeed (in kHz) or as module parameter "max_freq". - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
@@ -74,7 +74,7 @@ This adds the CPUFreq driver for mobile AMD K6-2+ and mobile AMD K6-3+ processors. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
@@ -84,30 +84,66 @@ help This adds the CPUFreq driver for mobile AMD K7 mobile processors. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N. +config X86_POWERNOW_K7_ACPI + bool + depends on ((X86_POWERNOW_K7 = "m" && ACPI_PROCESSOR) || (X86_POWERNOW_K7 = "y" && ACPI_PROCESSOR = "y")) + default y + config X86_POWERNOW_K8 tristate "AMD Opteron/Athlon64 PowerNow!" depends on CPU_FREQ && EXPERIMENTAL help This adds the CPUFreq driver for mobile AMD Opteron/Athlon64 processors. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N. +config X86_POWERNOW_K8_ACPI + bool + depends on ((X86_POWERNOW_K8 = "m" && ACPI_PROCESSOR) || (X86_POWERNOW_K8 = "y" && ACPI_PROCESSOR = "y")) + default y + config X86_GX_SUSPMOD tristate "Cyrix MediaGX/NatSemi Geode Suspend Modulation" depends on CPU_FREQ help - This add the CPUFreq driver for NatSemi Geode processors which - support suspend modulation. + This add the CPUFreq driver for NatSemi Geode processors which + support suspend modulation. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. + + If in doubt, say N. - If in doubt, say N. +config X86_SPEEDSTEP_CENTRINO + tristate "Intel Enhanced SpeedStep" + depends on CPU_FREQ_TABLE + help + This adds the CPUFreq driver for Enhanced SpeedStep enabled + mobile CPUs. This means Intel Pentium M (Centrino) CPUs. + + For details, take a look at <file:Documentation/cpu-freq/>. + + If in doubt, say N. + +config X86_SPEEDSTEP_CENTRINO_TABLE + bool + depends on X86_SPEEDSTEP_CENTRINO + default y + +config X86_SPEEDSTEP_CENTRINO_ACPI + bool "Use ACPI tables to decode valid frequency/voltage pairs (EXPERIMENTAL)" + depends on EXPERIMENTAL + depends on ((X86_SPEEDSTEP_CENTRINO = "m" && ACPI_PROCESSOR) || (X86_SPEEDSTEP_CENTRINO = "y" && ACPI_PROCESSOR = "y")) + help + Use primarily the information provided in the BIOS ACPI tables + to determine valid CPU frequency and voltage pairings. + + If in doubt, say Y. config X86_SPEEDSTEP_PIIX4 tristate "Intel Speedstep on PIIX4 chipsets (ioport interface)"
@@ -115,10 +151,10 @@ help This adds the CPUFreq driver for certain mobile Intel Pentium III (Coppermine), all mobile Intel Pentium III-M (Tualatin) and all - mobile Intel Pentium 4 P4-Ms on systems which have an Intel + mobile Intel Pentium 4 P4-M on systems which have an Intel PIIX4 (440BX/440MX) southbridge. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
@@ -128,10 +164,10 @@ help This adds the CPUFreq driver for certain mobile Intel Pentium III (Coppermine), all mobile Intel Pentium III-M (Tualatin) and all - mobile Intel Pentium 4 P4-Ms on systems which have an Intel ICH2, + mobile Intel Pentium 4 P4-M on systems which have an Intel ICH2, ICH3 or ICH4 southbridge. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
@@ -143,26 +179,25 @@ (Coppermine), all mobile Intel Pentium III-M (Tualatin) on systems which have an Intel 440BX/ZX/MX southbridge. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N. -config X86_SPEEDSTEP_CENTRINO - tristate "Intel Enhanced SpeedStep" - depends on CPU_FREQ_TABLE - help - This adds the CPUFreq driver for Enhanced SpeedStep enabled - mobile CPUs. This means Intel Pentium M (Centrino) CPUs. - - For details, take a look at linux/Documentation/cpu-freq. - - If in doubt, say N. - config X86_SPEEDSTEP_LIB tristate depends on (X86_SPEEDSTEP_ICH || X86_SPEEDSTEP_SMI || X86_P4_CLOCKMOD || X86_SPEEDSTEP_PIIX4) default (X86_SPEEDSTEP_ICH || X86_SPEEDSTEP_SMI || X86_P4_CLOCKMOD || X86_SPEEDSTEP_PIIX4) +config X86_SPEEDSTEP_RELAXED_CAP_CHECK + bool "Relaxed speedstep capability checks" + depends on (X86_SPEEDSTEP_SMI || X86_SPEEDSTEP_ICH) + help + Don't perform all checks for a speedstep capable system which would + normally be done. Some ancient or strange systems, though speedstep + capable, don't always indicate that they are speedstep capable. This + option let's the probing code bypass some of those checks if the + parameter "relaxed_check=1" is passed to the module. + config X86_P4_CLOCKMOD tristate "Intel Pentium 4 clock modulation" depends on CPU_FREQ_TABLE
@@ -170,7 +205,7 @@ This adds the CPUFreq driver for Intel Pentium 4 / XEON processors. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
@@ -181,7 +216,7 @@ This adds the CPUFreq driver for Transmeta Crusoe processors which support LongRun. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
@@ -193,7 +228,7 @@ VIA Cyrix Samuel/C3, VIA Cyrix Ezra and VIA Cyrix Ezra-T processors. - For details, take a look at linux/Documentation/cpu-freq. + For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
Index: Makefile
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/Makefile,v retrieving revision 1.16
retrieving revision 1.17
Makefile +3 -3
@@ -2,16 +2,16 @@ obj-$(CONFIG_X86_POWERNOW_K7) += powernow-k7.o obj-$(CONFIG_X86_POWERNOW_K8) += powernow-k8.o obj-$(CONFIG_X86_LONGHAUL) += longhaul.o -obj-$(CONFIG_X86_P4_CLOCKMOD) += p4-clockmod.o obj-$(CONFIG_ELAN_CPUFREQ) += elanfreq.o obj-$(CONFIG_X86_LONGRUN) += longrun.o obj-$(CONFIG_X86_GX_SUSPMOD) += gx-suspmod.o -obj-$(CONFIG_X86_ACPI_CPUFREQ) += acpi.o +obj-$(CONFIG_X86_SPEEDSTEP_PIIX4) += speedstep-piix4.o obj-$(CONFIG_X86_SPEEDSTEP_ICH) += speedstep-ich.o -obj-$(CONFIG_X86_SPEEDSTEP_PIIX4) += speedstep-piix4.o obj-$(CONFIG_X86_SPEEDSTEP_CENTRINO) += speedstep-centrino.o obj-$(CONFIG_X86_SPEEDSTEP_LIB) += speedstep-lib.o obj-$(CONFIG_X86_SPEEDSTEP_SMI) += speedstep-smi.o +obj-$(CONFIG_X86_ACPI_CPUFREQ) += acpi.o +obj-$(CONFIG_X86_P4_CLOCKMOD) += p4-clockmod.o ifdef CONFIG_X86_ACPI_CPUFREQ ifdef CONFIG_ACPI_DEBUG
Index: acpi.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/acpi.c,v retrieving revision 1.11
retrieving revision 1.12
acpi.c +2 -2
@@ -1,9 +1,9 @@/* -* acpi_processor_perf.c - ACPI Processor P-States Driver ($Revision$) +* acpi-cpufreq-io.c - ACPI Processor P-States Driver ($Revision$) * * Copyright (C) 2001, 2002 Andy Grover <[email protected]> * Copyright (C) 2001, 2002 Paul Diefenbaugh <[email protected]> -* Copyright (C) 2002, 2003 Dominik Brodowski <[email protected]> +* Copyright (C) 2002 - 2004 Dominik Brodowski <[email protected]> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
[...961 lines suppressed...]
- if (performance[i].pr)
- performance[i].pr->flags.performance = 0;
- }
-
- cpufreq_unregister_driver(&acpi_cpufreq_driver);
-
- /* unregister struct acpi_processor_performance performance */
- for (i=0; i<NR_CPUS; i++) {
- if (performance[i].pr) {
- performance[i].pr->flags.performance = 0;
- performance[i].pr->performance = NULL;
- performance[i].pr = NULL;
- }
- }
-
- kfree(performance);
+ cpufreq_unregister_driver(&acpi_cpufreq_driver);
return_VOID;
}
Index: elanfreq.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/elanfreq.c,v retrieving revision 1.32
retrieving revision 1.33
elanfreq.c +32 -7
@@ -77,7 +77,7 @@* and have the rest of the chip running with 33 MHz. */ -static unsigned int elanfreq_get_cpu_frequency (void ) +static unsigned int elanfreq_get_cpu_frequency (unsigned int cpu) {u8 clockspeed_reg;/* Clock Speed Register */
@@ -121,7 +121,7 @@struct cpufreq_freqs freqs; - freqs.old =elanfreq_get_cpu_frequency (); + freqs.old =elanfreq_get_cpu_frequency (0 ); freqs.new = elan_multiplier[state].clock; freqs.cpu =0 ;/* elanfreq.c is UP only driver */
@@ -165,7 +165,8 @@/** -* elanfreq_validatespeed: test if frequency range is valid +* elanfreq_validatespeed: test if frequency range is valid +* @policy: the policy to validate * * This function checks if a given frequency range in kHz is valid * for the hardware supported by the driver.
@@ -199,6 +200,7 @@ {struct cpuinfo_x86 *c = cpu_data;unsigned int i; +int result;/* capability check */ if ((c->x86_vendor != X86_VENDOR_AMD) ||
@@ -207,7 +209,7 @@/* max freq */ if (!max_freq) - max_freq =elanfreq_get_cpu_frequency (); + max_freq =elanfreq_get_cpu_frequency (0 );/* table init */ for (i=0 ; (elanfreq_table[i].frequency !=CPUFREQ_TABLE_END ); i++) {
@@ -218,9 +220,22 @@/* cpuinfo and default policy values */ policy->governor =CPUFREQ_DEFAULT_GOVERNOR ; policy->cpuinfo.transition_latency =CPUFREQ_ETERNAL ; - policy->cur =elanfreq_get_cpu_frequency (); + policy->cur =elanfreq_get_cpu_frequency (0 ); -return cpufreq_frequency_table_cpuinfo (policy, &elanfreq_table[0 ]);; + result =cpufreq_frequency_table_cpuinfo (policy, elanfreq_table); +if (result) +return (result); + +cpufreq_frequency_table_get_attr (elanfreq_table, policy->cpu); + +return 0 ; +} + + +static int elanfreq_cpu_exit (struct cpufreq_policy *policy) +{ +cpufreq_frequency_table_put_attr (policy->cpu); +return 0 ; }
@@ -239,18 +254,28 @@static int __init elanfreq_setup (char *str) { max_freq =simple_strtoul (str, &str,0 ); +printk (KERN_WARNING "You're using the deprecated elanfreq command line option. Use elanfreq.max_freq instead, please!\n" );return 1 ; }__setup ("elanfreq=" , elanfreq_setup);#endif +static struct freq_attr * elanfreq_attr[] = { + &cpufreq_freq_attr_scaling_available_freqs, +NULL , +}; + +static struct cpufreq_driver elanfreq_driver = { + .get = elanfreq_get_cpu_frequency, .verify = elanfreq_verify, .target = elanfreq_target, .init = elanfreq_cpu_init, + .exit = elanfreq_cpu_exit, .name ="elanfreq" , .owner =THIS_MODULE , + .attr = elanfreq_attr, };
@@ -276,7 +301,7 @@ } -MODULE_PARM (max_freq,"i" ); +module_param (max_freq, int,0444 );MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Robert Schwebel <[email protected]>, Sven Geggus <[email protected]>" );
Index: gx-suspmod.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/gx-suspmod.c,v retrieving revision 1.10
retrieving revision 1.11
gx-suspmod.c +51 -51
190 lines not on this page · raw message
Index: longhaul.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/longhaul.c,v retrieving revision 1.95
retrieving revision 1.96
longhaul.c +317 -123
681 lines not on this page · raw message
Index: longhaul.h
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/longhaul.h,v retrieving revision 1.2
retrieving revision 1.3
longhaul.h +154 -13
210 lines not on this page · raw message
Index: longrun.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/longrun.c,v retrieving revision 1.30
retrieving revision 1.31
longrun.c +59 -30
214 lines not on this page · raw message
Index: p4-clockmod.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/p4-clockmod.c,v retrieving revision 1.45
retrieving revision 1.46
p4-clockmod.c +104 -67
238 lines not on this page · raw message
Index: powernow-k6.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/powernow-k6.c,v retrieving revision 1.53
retrieving revision 1.54
powernow-k6.c +24 -3
@@ -118,7 +118,9 @@/** * powernow_k6_setpolicy - sets a new CPUFreq policy -* @policy - new policy +* @policy: new policy +* @target_freq: the target frequency +* @relation: how that frequency relates to achieved frequency (CPUFREQ_RELATION_L or CPUFREQ_RELATION_H) * * sets a new CPUFreq policy */
@@ -140,6 +142,7 @@static int powernow_k6_cpu_init (struct cpufreq_policy *policy) {unsigned int i; +int result;if (policy->cpu !=0 )return -ENODEV ;
@@ -161,7 +164,13 @@ policy->cpuinfo.transition_latency =CPUFREQ_ETERNAL ; policy->cur = busfreq * max_multiplier; -return cpufreq_frequency_table_cpuinfo (policy, &clock_ratio[0 ]); + result =cpufreq_frequency_table_cpuinfo (policy, clock_ratio); +if (result) +return (result); + +cpufreq_frequency_table_get_attr (clock_ratio, policy->cpu); + +return 0 ; }
@@ -172,17 +181,29 @@if (i==max_multiplier)powernow_k6_set_state (i); } -return 0 ; +cpufreq_frequency_table_put_attr (policy->cpu); +return 0 ; +} + +static unsigned int powernow_k6_get (unsigned int cpu) +{ +return busfreq *powernow_k6_get_cpu_multiplier (); } +static struct freq_attr * powernow_k6_attr[] = { + &cpufreq_freq_attr_scaling_available_freqs, +NULL , +};static struct cpufreq_driver powernow_k6_driver = { .verify = powernow_k6_verify, .target = powernow_k6_target, .init = powernow_k6_cpu_init, .exit = powernow_k6_cpu_exit, + .get = powernow_k6_get, .name ="powernow-k6" , .owner =THIS_MODULE , + .attr = powernow_k6_attr, };
Index: powernow-k7.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/powernow-k7.c,v retrieving revision 1.48
retrieving revision 1.49
powernow-k7.c +323 -67
587 lines not on this page · raw message
Index: powernow-k7.h
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/powernow-k7.h,v retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
Index: powernow-k8.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/powernow-k8.c,v retrieving revision 1.3
retrieving revision 1.4
powernow-k8.c +2 -2
@@ -1,20 +1,23 @@/* -* (c) 2003 Advanced Micro Devices, Inc. +* (c) 2003, 2004 Advanced Micro Devices, Inc. * Your use of this code is subject to the terms and conditions of the -* GNU general public license version 2. See "../../../COPYING" or +* GNU general public license version 2. See "COPYING" or * http://www.gnu.org/licenses/gpl.html * * Support : [email protected] * * Based on the powernow-k7.c module written by Dave Jones.
[...1639 lines suppressed...]
/* driver entry point for term */
-static void __exit
-powernowk8_exit(void)
+static void __exit powernowk8_exit(void)
{
- dprintk(KERN_INFO PFX "powernowk8_exit\n");
+ dprintk(KERN_INFO PFX "exit\n");
cpufreq_unregister_driver(&cpufreq_amd64_driver);
- kfree(ppst);
}
MODULE_AUTHOR("Paul Devriendt <[email protected]>"); MODULE_DESCRIPTION("AMD Athlon 64 and Opteron processor frequency driver."); MODULE_LICENSE("GPL");
-module_init(powernowk8_init);
+late_initcall(powernowk8_init);
module_exit(powernowk8_exit);
Index: powernow-k8.h
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/powernow-k8.h,v retrieving revision 1.2
retrieving revision 1.3
powernow-k8.h +89 -34
164 lines not on this page · raw message
Index: speedstep-centrino.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/speedstep-centrino.c,v retrieving revision 1.4
retrieving revision 1.5
speedstep-centrino.c +400 -109
315 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Index: speedstep-ich.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/speedstep-ich.c,v retrieving revision 1.7
retrieving revision 1.8
speedstep-ich.c +129 -55
184 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Index: speedstep-lib.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/speedstep-lib.c,v retrieving revision 1.3
retrieving revision 1.4
speedstep-lib.c +64 -16
80 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Index: speedstep-lib.h
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/speedstep-lib.h,v retrieving revision 1.2
retrieving revision 1.3
The rest of this diff is not shown. View the raw message.
Index: speedstep-smi.c
===================================================================
RCS file: /mnt/src/cvsroot/cpufreq/linux/arch/i386/kernel/cpufreq/speedstep-smi.c,v retrieving revision 1.4
retrieving revision 1.5
speedstep-smi.c +60 -25
85 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.