x86/delay: Refactor delay_mwaitx() for TPAUSE support
authorKyung Min Park <kyung.min.park@intel.com>
Fri, 24 Apr 2020 19:37:55 +0000 (12:37 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 May 2020 14:06:19 +0000 (16:06 +0200)
commit46f90c7aad62be1af76588108c730d826308a801
tree3f57e753613b6ed01c9a7e9f9116483e4a337013
parente8824890249355656968d8846908a313fe231f11
x86/delay: Refactor delay_mwaitx() for TPAUSE support

Refactor code to make it easier to add a new model specific function to
delay for a number of cycles.

No functional change.

Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Kyung Min Park <kyung.min.park@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/1587757076-30337-3-git-send-email-kyung.min.park@intel.com
arch/x86/lib/delay.c