diff options
author | Fenghua Yu <[email protected]> | 2019-06-19 18:33:56 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-06-24 01:44:20 +0200 |
commit | ff4b353f2ef9dc8e396d7cb9572801e34a8c7374 (patch) | |
tree | f1e072ead49c8b27d7ee437d34e797e10185a64b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | bd688c69b7e6693de3bd78f38fd63f7850c2711e (diff) |
x86/umwait: Add sysfs interface to control umwait C0.2 state
C0.2 state in umwait and tpause instructions can be enabled or disabled
on a processor through IA32_UMWAIT_CONTROL MSR register.
By default, C0.2 is enabled and the user wait instructions results in
lower power consumption with slower wakeup time.
But in real time systems which require faster wakeup time although power
savings could be smaller, the administrator needs to disable C0.2 and all
umwait invocations from user applications use C0.1.
Create a sysfs interface which allows the administrator to control C0.2
state during run time.
Andy Lutomirski suggested to turn off local irqs before writing the MSR to
ensure the cached control value is not changed by a concurrent sysfs write
from a different CPU via IPI.
[ tglx: Simplified the update logic in the write function and got rid of
all the convoluted type casts. Added a shared update function and
made the namespace consistent. Moved the sysfs create invocation.
Massaged changelog ]
Signed-off-by: Fenghua Yu <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Ashok Raj <[email protected]>
Reviewed-by: Tony Luck <[email protected]>
Cc: "Borislav Petkov" <[email protected]>
Cc: "H Peter Anvin" <[email protected]>
Cc: "Andy Lutomirski" <[email protected]>
Cc: "Peter Zijlstra" <[email protected]>
Cc: "Ravi V Shankar" <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions