FreeBSD Port: devcpu-0.8.2_1
Stanislav Sedov
stas at freebsd.org
Thu Jan 24 22:07:03 PST 2008
On Sun, Jan 20, 2008 at 10:59:01PM +0100 Markus Strobl mentioned:
> Hi Stanislav,
>
> few days ago, i write you a mail over my problem with the devcpu kernelmodul. I want to set a msr for undervolting a amd x2 cpu.
> Now I use the following patch for cpu.c:
>
> --- workO/devcpu-0.8.2/cpu/cpu.c 2007-07-20 00:30:18.000000000 +0200
> +++ work/devcpu-0.8.2/cpu/cpu.c 2008-01-18 23:59:32.000000000 +0100
> @@ -230,7 +230,8 @@
> ("[cpu,%d]: bad cpu number %d", __LINE__, cpu));
>
> /* Explicitly clear cpuid data to avoid returning stale info */
> - data->data = 0;
> + if (cmd == CPU_RDMSR)
> + data->data = 0;
>
> DPRINTF("[cpu,%d]: operating on MSR %#0x for %d cpu\n", __LINE__, \
> data->msr, cpu);
>
>
> Undervolting with a amd X2 cpu works now fine :-).
Committed! Thanks a lot for this patch!
I'm wondering, how I missed that before... WRMSR ioctl was totally broken.
--
Stanislav Sedov
ST4096-RIPE
More information about the freebsd-ports
mailing list