summaryrefslogtreecommitdiff
path: root/drivers/idle
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2023-01-06 07:03:42 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-01-20 19:33:52 +0300
commit716ff71ae234fd3ef1286aac8d8a19a0ed2d509d (patch)
treefe372d50a3a26b56a17c65b84b507aa972b7ab5e /drivers/idle
parent4edc13ae891ab368a3026cde1dbf263331bc6e77 (diff)
downloadlinux-716ff71ae234fd3ef1286aac8d8a19a0ed2d509d.tar.xz
cpuidle-haltpoll: Replace default_idle() with arch_cpu_idle()
When a KVM guest has MWAIT, mwait_idle() is used as the default idle function. However, the cpuidle-haltpoll driver calls default_idle() from default_enter_idle() directly and that one uses HLT instead of MWAIT, which may affect performance adversely, because MWAIT is preferred to HLT as explained by the changelog of commit aebef63cf7ff ("x86: Remove vendor checks from prefer_mwait_c1_over_halt"). Make default_enter_idle() call arch_cpu_idle(), which can use MWAIT, instead of default_idle() to address this issue. Suggested-by: Thomas Gleixner <tglx@linutronix.de> Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Li RongQing <lirongqing@baidu.com> [ rjw: Changelog rewrite ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions