Putting this here so people can just google instead of going through the same process I did.
I did this with phc-k8 on a Turion 64 X2 processor. Will take a little tweaking to use the Intel driver.
FIRST: You must be running kernel 3.2.0-24.38 or later. At the time of this writing, this kernel is still in -proposed.
Allrighty then. Get your driver here. Before we can compile this, we have to tweak something quick for 3.2 kernels. Edit Makefile. Change these two lines:
Code:
MODULES := phc-k8.ko mperf.ko
obj-m += phc-k8.o mperf.o
To this:
Code:
MODULES := phc-k8.ko
obj-m += phc-k8.o
Also comment this out:
Code:
ifneq ($(KERNELMAJOR), 2.6)
$(error Only support for 2.6 series kernels)
endif
Now open dkms.conf and comment out these two lines:
Code:
BUILT_MODULE_NAME[1]="mperf"
DEST_MODULE_LOCATION[1]="/kernel/arch/x86/kernel/cpu/cpufreq/"
With that done, make && sudo make dkms_install. Module is installed. But we're not done yet.
Edit /etc/default/grub and change this line:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cpufreq_driver=phc-k8"
Finally, update-grub, add phc-k8 to /etc/modules, and reboot. When your system comes back up, phc-k8 will be loaded and you'll have the /sys/devices/system/cpu/cpu0/phc_* hooks. The rest I'll leave up to other guides around the Internet.
Bookmarks