linux-sg2042/drivers/cpuidle/governors
Joao Martins 7321440829 cpuidle-haltpoll: set haltpoll as preferred governor
Right now, guest current governors have the following ratings:

 * ladder            -> 10
 * teo               -> 19
 * menu              -> 20
 * haltpoll          -> 21
 * ladder + nohz=off -> 25

haltpoll governor got introduced and it is now the default governor given
its highest rating -- with ladder+nohz being the exception -- regardless of
idle driver in the guest. An example of an undesirable case is x86 KVM
guests with MWAIT which have intel_idle registered first, and consequently
will have haltpoll be used as governor which would get limited to a poll
state and state 1 and the other states wouldn't get used.

To keep the previous defaults we decrease rating of governor to 9 (below
current lowest rating) and thus rely on @governor switch on
cpuidle_register_driver() to tie in haltpoll idle driver and governor
together.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-09-11 17:36:30 +02:00
..
Makefile cpuidle: add haltpoll governor 2019-07-30 17:27:37 +02:00
haltpoll.c cpuidle-haltpoll: set haltpoll as preferred governor 2019-09-11 17:36:30 +02:00
ladder.c governors: unify last_state_idx 2019-07-30 17:27:37 +02:00
menu.c cpuidle: menu: Allow tick to be stopped if PM QoS is used 2019-08-05 11:02:44 +02:00
teo.c cpuidle: teo: Get rid of redundant check in teo_update() 2019-08-10 14:34:28 +02:00