Date: Sun, 20 Jan 2008 22:59:01 +0100 From: "Markus Strobl" <markus.strobl@gmx.at> To: stas@freebsd.org Cc: ports@freebsd.org Subject: FreeBSD Port: devcpu-0.8.2_1 Message-ID: <20080120215901.171800@gmx.net>
next in thread | raw e-mail | index | archive | help
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 :-). Best regards Markus -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080120215901.171800>