git: x86_64: Implement idle mwait hint auto tuning
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Sun Feb 2 06:02:42 PST 2014
commit 1786faf9e0837dd7ac069226d45053086253153b
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Sun Feb 2 21:48:19 2014 +0800
x86_64: Implement idle mwait hint auto tuning
The tuning is based on gd_idle_repeat. The higher the gd_idle_repeat,
the deeper cpu specific C-state the current CPU will enter.
The idle mwait hint auto tuning could be enabled by setting sysctl
machdep.mwait.CX.idle to "AUTO" or "AUTODEEP":
"AUTO" -- C0 ~ C2
"AUTODEEP" -- C0 ~ deepest cpu specific C-state
This will allow us to enter deepest cpu specific C-state, even if ACPI
does not map its deepest C-State to the deepest cpu specific C-state.
NOTE:
AUTODEEP and C3+ cpu specific C-state is not bullet prove yet. We need
to get the bus master operations information from ACPI.
Summary of changes:
sys/platform/pc64/x86_64/machdep.c | 70 ++++++++++++++++++++++++++++++--------
1 file changed, 55 insertions(+), 15 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1786faf9e0837dd7ac069226d45053086253153b
--
DragonFly BSD source repository
More information about the Commits
mailing list