diff options
author | Fenghua Yu <[email protected]> | 2019-06-19 18:33:57 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-06-24 01:44:20 +0200 |
commit | bd9a0c97e53c3d7a56b2751179903ddc5da42683 (patch) | |
tree | 012e64f9704bf31a42ee489ca0b597527ab22619 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ff4b353f2ef9dc8e396d7cb9572801e34a8c7374 (diff) |
x86/umwait: Add sysfs interface to control umwait maximum time
IA32_UMWAIT_CONTROL[31:2] determines the maximum time in TSC-quanta
that processor can stay in C0.1 or C0.2. A zero value means no maximum
time.
Each instruction sets its own deadline in the instruction's implicit
input EDX:EAX value. The instruction wakes up if the time-stamp counter
reaches or exceeds the specified deadline, or the umwait maximum time
expires, or a store happens in the monitored address range in umwait.
The administrator can write an unsigned 32-bit number to
/sys/devices/system/cpu/umwait_control/max_time to change the default
value. Note that a value of zero means there is no limit. The lower two
bits of the value must be zero.
[ tglx: Simplify the write function. Massage 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-postgresql.py')
0 files changed, 0 insertions, 0 deletions