On Thu, Sep 15, 2011 at 12:32 PM, K. Macy <km...@freebsd.org> wrote:
[...]
> sys/x86/cpufreq/est.c:1008
>
>        /* Attempt to enable SpeedStep if not currently enabled. */
>        msr = rdmsr(MSR_MISC_ENABLE);
>        if ((msr & MSR_SS_ENABLE) == 0) {
>                wrmsr(MSR_MISC_ENABLE, msr | MSR_SS_ENABLE);
>                if (bootverbose)
>                        device_printf(dev, "enabling SpeedStep\n");
>
>                /* Check if the enable failed. */
>                msr = rdmsr(MSR_MISC_ENABLE);
>                if ((msr & MSR_SS_ENABLE) == 0) {
>                        device_printf(dev, "failed to enable SpeedStep\n");
>                        return (ENXIO);

Looking at the Intel® 64 and IA-32 Architectures Software Developer’s
Manual (section 14.1), I think the code here is right?

(I'd expect Linux do the same since the code are mostly the same there).

Cheers,
-- 
Xin LI <delp...@delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to