git: kernel - Enhance machdep.cpu_idle_hlt
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Mar 26 23:43:17 PDT 2017
commit a1874fede74175d4a8e5586c0c53329d16b9aa69
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Mar 26 23:08:30 2017 -0700
kernel - Enhance machdep.cpu_idle_hlt
* Enhance machdep.cpu_idle_hlt. It was not operating as advertised for
settings 0 or 3+. Add mode 5.
0 - Now spins as documented (wasn't, before)
1 - Uses MONITOR/MWAIT if supported, HLT otherwise
2 - Uses mode (1) up to a point, then uses mode (3)
3 - Always use the ACPI halt code.
4 - Always use HLT (do not use MONITOR/MWAIT even if supported)
5 - Always spin
* Recode the default setting for AMD cpus (but no functional changes).
Default setting is 3 for AMD.
Summary of changes:
sys/platform/pc64/x86_64/machdep.c | 42 +++++++++++++++++++++++++-------------
1 file changed, 28 insertions(+), 14 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a1874fede74175d4a8e5586c0c53329d16b9aa69
--
DragonFly BSD source repository
More information about the Commits
mailing list