]> git.hungrycats.org Git - linux/commit
[PATCH] fix up CPU detection in p4-clockmod
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 13:12:11 +0000 (05:12 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 13:12:11 +0000 (05:12 -0800)
commit7f6060e841366691d19378e7ba7d0da50d85d796
tree0790cd414fc59dd2c76115906f4a951d8dec9f8e
parent6dd6551ee50466dbbdcd111a34f38037038bef2e
[PATCH] fix up CPU detection in p4-clockmod

From: Dominik Brodowski <linux@dominikbrodowski.de>

Too many users use the p4-clockmod cpufreq driver instead of the more
advanced speedstep-centrino, speedstep-ich or even acpi drivers.  All of
the latter (usually) provide voltage scaling, while the p4-clockmod driver
only offers a variant of frequency scaling.  So, warn users if they try out
this driver instead.

Also, instead of using a local copy, use the speedstep_lib infrastructure
for detecting the processor speed.  Adding the Pentium-M get_frequency
function to that module only costs about 200 bytes in object size.
arch/i386/kernel/cpu/cpufreq/Kconfig
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
arch/i386/kernel/cpu/cpufreq/speedstep-lib.c
arch/i386/kernel/cpu/cpufreq/speedstep-lib.h