lkml.org 
[lkml]   [2020]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] x86/delay: Introduce TPAUSE instruction
Date
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

\
 
 \ /
  Last update: 2020-02-26 20:12    [W:0.055 / U:0.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site