perfbias: Implement Intel performance-energy hint support
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 7 Feb 2014 13:16:59 +0000 (21:16 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 8 Feb 2014 09:31:26 +0000 (17:31 +0800)
commit73e10c03da7b1b0364d1889cf2ac2231f26ee9a8
tree7cd25519470aacf82777d457e95c25c21ba92a5f
parent6adf176927a50b532bad182693be9d9945f96202
perfbias: Implement Intel performance-energy hint support

This hint is set on per-logical CPU.  0 delivers highest performance;
15 maximizes energy saving.  It could be set through sysctl nodes
machdep.perfbiasX (X is the CPU id).

It is linked into i386 and x86_64 GENERIC kernel.

* We may want to make powerd(8) to aware of these sysctls.
sys/conf/files
sys/config/GENERIC
sys/config/LINT
sys/config/LINT64
sys/config/X86_64_GENERIC
sys/dev/powermng/Makefile
sys/dev/powermng/perfbias/Makefile [new file with mode: 0644]
sys/dev/powermng/perfbias/perfbias.c [new file with mode: 0644]