cpuidle-haltpoll: disable host side polling when kvm virtualized
When performing guest side polling, it is not necessary to also perform host side polling. So disable host side polling, via the new MSR interface, when loading cpuidle-haltpoll driver. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
2cffe9f6b9
commit
a1c4423b02
8
arch/x86/include/asm/cpuidle_haltpoll.h
Normal file
8
arch/x86/include/asm/cpuidle_haltpoll.h
Normal file
@@ -0,0 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef _ARCH_HALTPOLL_H
|
||||
#define _ARCH_HALTPOLL_H
|
||||
|
||||
void arch_haltpoll_enable(void);
|
||||
void arch_haltpoll_disable(void);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user