]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: haltpoll: allow force loading on hosts without the REALTIME hint
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Wed, 4 Mar 2020 11:32:48 +0000 (12:32 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Mar 2020 10:39:07 +0000 (11:39 +0100)
commit3937dd037c1faa172d248cd88671845babe74d08
tree5aa2489bb1895df8e4c49cb15137ce1e3c848309
parenteee9e763dee4c70a93b6fb49500a2f42b97f51fa
cpuidle: haltpoll: allow force loading on hosts without the REALTIME hint

Before commit 56f12e8563b3 ("cpuidle-haltpoll: Enable kvm guest polling
when dedicated physical CPUs are available") the cpuidle-haltpoll driver
could also be used in scenarios when the host does not advertise the
KVM_HINTS_REALTIME hint.

While the behavior introduced by the aforementioned commit makes sense as
the default there are cases where the old behavior is desired, for example,
when other kernel changes triggered by presence by this hint are unwanted,
for some workloads where the latency benefit from polling overweights the
loss from idle CPU capacity that otherwise would be available, or just when
running under older Qemu versions that lack this hint.

Let's provide a typical "force" module parameter that allows restoring the
old behavior.

Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle-haltpoll.c