Re: [PATCH] Add p4-clockmod driver in x86-64

From: Andi Kleen
Date: Wed Oct 27 2004 - 19:23:45 EST


On Tue, Oct 26, 2004 at 02:28:26PM -0700, Venkatesh Pallipadi wrote:
>
> Add links for p4-clockmod driver in x86-64 cpufreq.

I added it with a clarified description and made it dependent on
CONFIG_EMBEDDED to prevent mistakes (perhaps that should be done on i386 too?)

Thanks.

-Andi


Here's the patch for your reference:



Add links for p4-clockmod driver in x86-64 cpufreq.

AK: Made it dependent on EMBEDDED because the driver is only
useful in some special situations and should be normally not used.

Signed-off-by: "Venkatesh Pallipadi" <venkatesh.pallipadi@xxxxxxxxx>
Signed-off-by: Andi Kleen <ak@xxxxxxx>

Index: linux/arch/x86_64/kernel/cpufreq/Makefile
===================================================================
--- linux.orig/arch/x86_64/kernel/cpufreq/Makefile 2004-10-19 01:55:08.%N +0200
+++ linux/arch/x86_64/kernel/cpufreq/Makefile 2004-10-28 02:02:00.%N +0200
@@ -7,7 +7,11 @@
obj-$(CONFIG_X86_POWERNOW_K8) += powernow-k8.o
obj-$(CONFIG_X86_SPEEDSTEP_CENTRINO) += speedstep-centrino.o
obj-$(CONFIG_X86_ACPI_CPUFREQ) += acpi.o
+obj-$(CONFIG_X86_P4_CLOCKMOD) += p4-clockmod.o
+obj-$(CONFIG_X86_SPEEDSTEP_LIB) += speedstep-lib.o

powernow-k8-objs := ${SRCDIR}/powernow-k8.o
speedstep-centrino-objs := ${SRCDIR}/speedstep-centrino.o
acpi-objs := ${SRCDIR}/acpi.o
+p4-clockmod-objs := ${SRCDIR}/p4-clockmod.o
+speedstep-lib-objs := ${SRCDIR}/speedstep-lib.o
Index: linux/arch/x86_64/kernel/cpufreq/Kconfig
===================================================================
--- linux.orig/arch/x86_64/kernel/cpufreq/Kconfig 2004-10-25 04:47:15.%N +0200
+++ linux/arch/x86_64/kernel/cpufreq/Kconfig 2004-10-28 02:09:04.%N +0200
@@ -88,5 +88,29 @@

If in doubt, say N.

+config X86_P4_CLOCKMOD
+ tristate "Intel Pentium 4 clock modulation"
+ depends on CPU_FREQ_TABLE && EMBEDDED
+ help
+ This adds the clock modulation driver for Intel Pentium 4 / XEON
+ processors. When enabled it will lower CPU temperature by skipping
+ clocks.
+
+ This driver should be only used in exceptional
+ circumstances when very low power is needed because it causes severe
+ slowdowns and noticeable latencies. Normally Speedstep should be used
+ instead.
+
+ For details, take a look at <file:Documentation/cpu-freq/>.
+
+ Unless you are absolutely sure say N.
+
+
+config X86_SPEEDSTEP_LIB
+ tristate
+ depends on (X86_P4_CLOCKMOD)
+ default (X86_P4_CLOCKMOD)
+
+
endmenu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/