diff options
author | Kyung Min Park <[email protected]> | 2020-04-24 12:37:56 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-05-07 16:06:20 +0200 |
commit | cec5f268cd02d25d2d74807843d8ae0292fe0fb7 (patch) | |
tree | 917947f6e242b5f1c21e136cf3916dd09c3473ce /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 46f90c7aad62be1af76588108c730d826308a801 (diff) |
x86/delay: Introduce TPAUSE delay
TPAUSE instructs the processor to enter an implementation-dependent
optimized state. The instruction execution wakes up when the time-stamp
counter reaches or exceeds the implicit EDX:EAX 64-bit input value.
The instruction execution also wakes up due to the expiration of
the operating system time-limit or by an external interrupt
or exceptions such as a debug exception or a machine check exception.
TPAUSE offers a choice of two lower power states:
1. Light-weight power/performance optimized state C0.1
2. Improved power/performance optimized state C0.2
This way, it can save power with low wake-up latency in comparison to
spinloop based delay. The selection between the two is governed by the
input register.
TPAUSE is available on processors with X86_FEATURE_WAITPKG.
Co-developed-by: Fenghua Yu <[email protected]>
Signed-off-by: Fenghua Yu <[email protected]>
Signed-off-by: Kyung Min Park <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Tony Luck <[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