git: mwait/spin: Push sysctl into machdep code

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Feb 6 04:41:02 PST 2014


commit 6c2af113692ff4c3c4d20594bb7a5b41bdc050cc
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Feb 6 19:56:59 2014 +0800

    mwait/spin: Push sysctl into machdep code
    
    On x86_64, make the sysctl read only.  Sysctl machdep.mwait.CX.spin
    should be used to configure the mwait hint.
    
    Manipulate mwait hint value directly through hw.cpu_mwait_halt is not
    safe, e.g. intr cputimer may need change for deep cpu specific C-state.

Summary of changes:
 sys/kern/lwkt_thread.c             | 2 --
 sys/platform/pc32/i386/machdep.c   | 2 ++
 sys/platform/pc64/x86_64/machdep.c | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6c2af113692ff4c3c4d20594bb7a5b41bdc050cc


-- 
DragonFly BSD source repository



More information about the Commits mailing list