Messages in this thread | | | From | Kyung Min Park <> | Subject | [PATCH 0/2] x86/delay: Introduce TPAUSE instruction | Date | Wed, 26 Feb 2020 11:10:56 -0800 |
| |
Intel processors that support the WAITPKG feature implement the TPAUSE instruction that suspends execution in a lower power state until the TSC (Time Stamp Counter) exceeds a certain value.
Update the udelay() function to use TPAUSE on systems where it is available. Note that we hard code the deeper (C0.2) sleep state because exit latency is small compared to the "microseconds" that usleep() will delay.
Kyung Min Park (2): x86/asm: Define a few helpers in delay_waitx() x86/asm/delay: Introduce TPAUSE delay
arch/x86/include/asm/mwait.h | 17 +++++++++ arch/x86/lib/delay.c | 82 ++++++++++++++++++++++++++++++++------------ 2 files changed, 78 insertions(+), 21 deletions(-)
-- 2.7.4
| |