Linux Kernel Mailing List | 1 Jun 05:59 2005

[CPUFREQ] cpufreq-core: reduce warning messages.

tree 409646f20f7aee409751091e9fc3b31e1ae65e9f
parent 7eb53d88230e23f83b2e20a78955e1412fa7bb26
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:43 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:43 -0700

[CPUFREQ] cpufreq-core: reduce warning messages.

cpufreq core is printing out messages at KERN_WARNING level that the core
recovers from without intervention, and that the system administrator can
do nothing about.  Patch below reduces the severity of these messages to
debug.

Signed-off-by: Matt Domsch <Matt_Domsch <at> dell.com>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 drivers/cpufreq/cpufreq.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

Index: drivers/cpufreq/cpufreq.c
===================================================================
--- 4e893f38f134f1abf8713ebe5b85699d8a0e40a9/drivers/cpufreq/cpufreq.c  (mode:100644 sha1:8e561313d0942571c99de7c19b26f920d355f974)
+++ 409646f20f7aee409751091e9fc3b31e1ae65e9f/drivers/cpufreq/cpufreq.c  (mode:100644 sha1:03b5fb2ddcf44902aba3d2e79d7f1c5f3b036140)
 <at>  <at>  -258,7 +258,7  <at>  <at>  void cpufreq_notify_transition(struct cp
 			    (likely(cpufreq_cpu_data[freqs->cpu]->cur)) &&
 			    (unlikely(freqs->old != cpufreq_cpu_data[freqs->cpu]->cur)))
 			{
-				printk(KERN_WARNING "Warning: CPU frequency is %u, "
+				dprintk(KERN_WARNING "Warning: CPU frequency is %u, "
 				       "cpufreq assumed %u kHz.\n", freqs->old, cpufreq_cpu_data[freqs->cpu]->cur);
(Continue reading)

Linux Kernel Mailing List | 1 Jun 05:59 2005

[CPUFREQ] speedstep-centrino: Pentium 4 - M (HT) support

tree 1f5a4a4349dd49e7211d990e5d53f7454e16072c
parent 78ee998fd46ed4cc647ee442d2a5492f389ee27a
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:43 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:43 -0700

[CPUFREQ] speedstep-centrino: Pentium 4 - M (HT) support

The Pentium 4 - Ms (HT) with CPUID 0xF34 and 0xF41 seem to support
centrino-like enhanced speedstep; however, no "table" support is possible.
Therefore, put NULL entries into speedstep-centrino.c

Signed-off-by: Dominik Brodowski <linux <at> dominikbrodowski.net>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c |    6 ++++++
 1 files changed, 6 insertions(+)

Index: arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
===================================================================
---
409646f20f7aee409751091e9fc3b31e1ae65e9f/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
 (mode:100644 sha1:07d5612dc00f4f534e8926f669ca45bae2995609)
+++
1f5a4a4349dd49e7211d990e5d53f7454e16072c/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
 (mode:100644 sha1:7dcbf70fc16f52afaaf355aa1f4f1c7aae0ca1d5)
 <at>  <at>  -54,6 +54,8  <at>  <at>  enum {
 	CPU_DOTHAN_A1,
 	CPU_DOTHAN_A2,
 	CPU_DOTHAN_B0,
+	CPU_MP4HT_D0,
(Continue reading)

Linux Kernel Mailing List | 1 Jun 05:59 2005

[CPUFREQ] powernow-k7: don't print khz element of FSB.

tree 4e893f38f134f1abf8713ebe5b85699d8a0e40a9
parent e74d633dc5f56bf059f870370b2f36b021298652
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:42 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:42 -0700

[CPUFREQ] powernow-k7: don't print khz element of FSB.

Signed-off-by: Dave Jones <davej <at> redhat.com>

 arch/i386/kernel/cpu/cpufreq/powernow-k7.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: arch/i386/kernel/cpu/cpufreq/powernow-k7.c
===================================================================
--- f5eb7cd036ac626cd088acf5228883b31961d8e4/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 
(mode:100644 sha1:913f652623d91f780d0c4a5492f57c6e3afebaee)
+++ 4e893f38f134f1abf8713ebe5b85699d8a0e40a9/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 
(mode:100644 sha1:80f01b00bada22a13280fd27c125dac6e7cfea15)
 <at>  <at>  -592,7 +592,7  <at>  <at>  static int __init powernow_cpu_init (str
 		printk(KERN_WARNING PFX "can not determine bus frequency\n");
 		return -EINVAL;
 	}
-	dprintk("FSB: %3d.%03d MHz\n", fsb/1000, fsb%1000);
+	dprintk("FSB: %3dMHz\n", fsb/1000);

 	if (dmi_check_system(powernow_dmi_table) || acpi_force) {
 		printk (KERN_INFO PFX "PSB/PST known to be broken.  Trying ACPI instead\n");
Linux Kernel Mailing List | 1 Jun 05:59 2005

[CPUFREQ] speedstep-smi: it works on at least one P4M

tree 44031d0e3c3564a7998a285a22b871c46c8cd310
parent 6fe711658fcf92d39d84c0b7e6332ed6625dc520
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:44 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:44 -0700

[CPUFREQ] speedstep-smi: it works on at least one P4M

The speedstep-smi driver actually works on >=1 notebook with a
Pentium 4-M CPU where all other cpufreq drivers fail. Therefore,
allow speedstep-smi on P4Ms again, but warn users of likely failure

Signed-off-by: Dominik Brodowski <linux <at> dominikbrodowski.net>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 arch/i386/kernel/cpu/cpufreq/speedstep-smi.c |    3 +++
 1 files changed, 3 insertions(+)

Index: arch/i386/kernel/cpu/cpufreq/speedstep-smi.c
===================================================================
--- e6d4343fcffbd1092005bef9025ffee6d37a2fad/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c 
(mode:100644 sha1:79440b3f087ec9beeca123de97b9da6b572bd171)
+++ 44031d0e3c3564a7998a285a22b871c46c8cd310/arch/i386/kernel/cpu/cpufreq/speedstep-smi.c 
(mode:100644 sha1:b25fb6b635ae85e8595454e7c304a864d10c353c)
 <at>  <at>  -357,6 +357,9  <at>  <at>  static int __init speedstep_init(void)
 	case SPEEDSTEP_PROCESSOR_PIII_C:
 	case SPEEDSTEP_PROCESSOR_PIII_C_EARLY:
 		break;
+	case SPEEDSTEP_PROCESSOR_P4M:
+		printk(KERN_INFO "speedstep-smi: you're trying to use this cpufreq driver on a Pentium 4-based CPU.
Most likely it will not work.\n");
(Continue reading)

Linux Kernel Mailing List | 1 Jun 05:59 2005

[CPUFREQ] ondemand: trivial clean-ups

tree e6d4343fcffbd1092005bef9025ffee6d37a2fad
parent 8282864a96ef0a7b88ee9e4b357e08504131394d
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:44 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:44 -0700

[CPUFREQ] ondemand: trivial clean-ups

Trivial ondemand governor clean-ups:
- change from sampling_rate_in_HZ() to the official function
usecs_to_jiffies().
- use for_each_online_cpu() to instead of using "if (cpu_online(i))"

Signed-off-by: Eric Piel <eric.piel <at> tremplin-utc.net>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi <at> intel.com>
Signed-off-by: Dominik Brodowski <linux <at> dominikbrodowski.net>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 drivers/cpufreq/cpufreq_ondemand.c |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

Index: drivers/cpufreq/cpufreq_ondemand.c
===================================================================
--- 1f5a4a4349dd49e7211d990e5d53f7454e16072c/drivers/cpufreq/cpufreq_ondemand.c  (mode:100644 sha1:8d83a21c6477f3e7a3cd223a9bffa4e8b1af1710)
+++ e6d4343fcffbd1092005bef9025ffee6d37a2fad/drivers/cpufreq/cpufreq_ondemand.c  (mode:100644 sha1:0bc0bff55d261b10b81fdd6557a02e021b8febc3)
 <at>  <at>  -57,7 +57,6  <at>  <at>  static unsigned int 				def_sampling_rat
 #define DEF_SAMPLING_RATE_LATENCY_MULTIPLIER	(1000)
 #define DEF_SAMPLING_DOWN_FACTOR		(10)
 #define TRANSITION_LATENCY_LIMIT		(10 * 1000)
-#define sampling_rate_in_HZ(x)			(((x * HZ) < (1000 * 1000))?1:((x * HZ) / (1000 * 1000)))

(Continue reading)

Linux Kernel Mailing List | 1 Jun 05:59 2005

[CPUFREQ] Add warning comment about default governors.

tree 8cc778e296993b736b1caefc4cc81a8654671167
parent 6f4095af6df7aa365ecf18473c8b05c5f6c38a78
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:44 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:44 -0700

[CPUFREQ] Add warning comment about default governors.

This comes up time and time again. Until its fixed, place this
comment in the Kconfig which should stem the flow of resubmissions.

Signed-off-by: Rob Weryk <rjweryk <at> uwo.ca>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 drivers/cpufreq/Kconfig |    4 ++++
 1 files changed, 4 insertions(+)

Index: drivers/cpufreq/Kconfig
===================================================================
--- 44031d0e3c3564a7998a285a22b871c46c8cd310/drivers/cpufreq/Kconfig  (mode:100644 sha1:95882bb1950e3c2f211e28467d782a51fb4cd69a)
+++ 8cc778e296993b736b1caefc4cc81a8654671167/drivers/cpufreq/Kconfig  (mode:100644 sha1:3617e15567cbe1e39ca4979a046e83ec5394d408)
 <at>  <at>  -46,6 +46,10  <at>  <at>  config CPU_FREQ_STAT_DETAILS
          This will show detail CPU frequency translation table in sysfs file
          system

+# Note that it is not currently possible to set the other governors (such as ondemand)
+# as the default, since if they fail to initialise, cpufreq will be
+# left in an undefined state.
+
 choice
 	prompt "Default CPUFreq governor"
(Continue reading)

Linux Kernel Mailing List | 1 Jun 06:00 2005

[CPUFREQ] Recalibrate cpu_khz [2/2]

tree b0636983104860fa15d9054d29ec9e8b912642cd
parent 91350ed49bf3613e243c2e216228cd4ae8f32516
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:46 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:46 -0700

[CPUFREQ] Recalibrate cpu_khz [2/2]

Some cpufreq drivers (at that time, only powernow-k7) need to recalibrate the
cpu_khz at runtime.

Signed-off-by: Bruno Ducrot <ducrot <at> poupinou.org>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 arch/i386/kernel/timers/common.c    |    6 ++++--
 arch/i386/kernel/timers/timer_tsc.c |   20 ++++++++++++++++++++
 include/asm-i386/timer.h            |    1 +
 3 files changed, 25 insertions(+), 2 deletions(-)

Index: arch/i386/kernel/timers/common.c
===================================================================
--- 4c9e99fe077224e678bdd03353d37efe1f5af81e/arch/i386/kernel/timers/common.c  (mode:100644 sha1:f7f90005e22e352ffedf7a19347ae0da92fe728b)
+++ b0636983104860fa15d9054d29ec9e8b912642cd/arch/i386/kernel/timers/common.c  (mode:100644 sha1:8e201219f5253f53a84d1254b922ab7a7ff1a519)
 <at>  <at>  -6,6 +6,7  <at>  <at> 
 #include <linux/timex.h>
 #include <linux/errno.h>
 #include <linux/jiffies.h>
+#include <linux/module.h>

 #include <asm/io.h>
(Continue reading)

Linux Kernel Mailing List | 1 Jun 06:00 2005

[CPUFREQ] Recalibrate cpu_khz [1/2]

tree 4c9e99fe077224e678bdd03353d37efe1f5af81e
parent bf6fc9fd2d848d06b8f6c4caccef1dba9ef8c4c6
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:45 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:45 -0700

[CPUFREQ] Recalibrate cpu_khz [1/2]

We have to recalibrate cpu_khz in order to use the current FID instead the max
FID since some BIOS do not put the processor at maximum frequency at POST. 
Also, some BIOS will change the processor frequency at our back after cpu_khz
was calibrate.  Finally, this will fix a long standing bug when we do
something like this:

# rmmod powernow-k7
# modprobe powernow-k7

Signed-off-by: Bruno Ducrot <ducrot <at> poupinou.org>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 arch/i386/kernel/cpu/cpufreq/powernow-k7.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

Index: arch/i386/kernel/cpu/cpufreq/powernow-k7.c
===================================================================
--- 5b70d44fcdd24a720ae857a7c16ae4c543465f15/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 
(mode:100644 sha1:80f01b00bada22a13280fd27c125dac6e7cfea15)
+++ 4c9e99fe077224e678bdd03353d37efe1f5af81e/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 
(mode:100644 sha1:5c530064eb74bf963a8f43ea4265b96d6042ac65)
 <at>  <at>  -23,6 +23,7  <at>  <at> 
(Continue reading)

Linux Kernel Mailing List | 1 Jun 06:00 2005

[CPUFREQ] AMD Elan SC520 cpufreq driver.

tree 5b70d44fcdd24a720ae857a7c16ae4c543465f15
parent 3310010818aa12145905faf97ffe3742acc842e2
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:45 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:45 -0700

[CPUFREQ] AMD Elan SC520 cpufreq driver.

From: Sean Young <sean <at> mess.org>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 arch/i386/kernel/cpu/cpufreq/Kconfig      |   14 ++
 arch/i386/kernel/cpu/cpufreq/Makefile     |    1 
 arch/i386/kernel/cpu/cpufreq/sc520_freq.c |  186 ++++++++++++++++++++++++++++++
 3 files changed, 200 insertions(+), 1 deletion(-)

Index: arch/i386/kernel/cpu/cpufreq/Kconfig
===================================================================
--- 8cc778e296993b736b1caefc4cc81a8654671167/arch/i386/kernel/cpu/cpufreq/Kconfig 
(mode:100644 sha1:f25ffd74235caa330985b4cbaa6d5ece01b78b67)
+++ 5b70d44fcdd24a720ae857a7c16ae4c543465f15/arch/i386/kernel/cpu/cpufreq/Kconfig 
(mode:100644 sha1:0f1eb507233b701c6bb7b158104e0e5cfd9e4d85)
 <at>  <at>  -23,7 +23,7  <at>  <at>  config X86_ACPI_CPUFREQ
 	  If in doubt, say N.

 config ELAN_CPUFREQ
-	tristate "AMD Elan"
+	tristate "AMD Elan SC400 and SC410"
 	select CPU_FREQ_TABLE
 	depends on X86_ELAN
 	---help---
(Continue reading)

Linux Kernel Mailing List | 1 Jun 06:00 2005

[CPUFREQ] make cpufreq_gov_dbs static

tree b4dad7441cc040c9223883761a05a2317a9c1ac0
parent c5d28fb297efaa97c4b90e36f9dff3066e7f2778
author Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:46 -0700
committer Dave Jones <davej <at> redhat.com> Wed, 01 Jun 2005 09:03:46 -0700

[CPUFREQ] make cpufreq_gov_dbs static

This patch makes a needlessly global and EXPORT_SYMBOL'ed struct static.

Signed-off-by: Adrian Bunk <bunk <at> stusta.de>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 drivers/cpufreq/cpufreq_ondemand.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

Index: drivers/cpufreq/cpufreq_ondemand.c
===================================================================
--- b0636983104860fa15d9054d29ec9e8b912642cd/drivers/cpufreq/cpufreq_ondemand.c  (mode:100644 sha1:0bc0bff55d261b10b81fdd6557a02e021b8febc3)
+++ b4dad7441cc040c9223883761a05a2317a9c1ac0/drivers/cpufreq/cpufreq_ondemand.c  (mode:100644 sha1:84c658822a105393801b01d243dbb6b719593c52)
 <at>  <at>  -459,12 +459,11  <at>  <at>  static int cpufreq_governor_dbs(struct c
 	return 0;
 }

-struct cpufreq_governor cpufreq_gov_dbs = {
+static struct cpufreq_governor cpufreq_gov_dbs = {
 	.name		= "ondemand",
 	.governor	= cpufreq_governor_dbs,
 	.owner		= THIS_MODULE,
 };
-EXPORT_SYMBOL(cpufreq_gov_dbs);
(Continue reading)


Gmane