On 2017/10/14 9:27, Rafael J. Wysocki wrote: >> diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c >> index 0951dac..8704f3c 100644 >> --- a/kernel/sched/idle.c >> +++ b/kernel/sched/idle.c >> @@ -225,6 +225,7 @@ static void do_idle(void) >> */ >> __current_set_polling(); >> quiet_vmstat(); >> + cpuidle_predict(); > > One more question here. > > This changes the cpuidle code ordering such that if the ->predict callback > is present, the governor prediction will run before tick_nohz_idle_enter(), > whereas without that callback it runs in cpuidle_idle_call(). > > Is that actually going to work correctly for the menu governor, in particular? >
This depends on how prediction works, patch 1/8 has the details. The first factor we get is the next clock event from tick device, this is not related to cpuidle call. The other two factors are derived from idle interval history, the data is already maintained in menu_device data structure. I'm not sure if this can address your concern, or anything else I can provide to help this. Thanks, -Aubrey