Re: [PATCH 3/3] cpuidle/menu: add per cpu pm_qos_resume_latency consideration

From: Alex Shi
Date: Thu Jan 19 2017 - 04:32:58 EST



> That said, I have the feeling that is taking the wrong direction. Each time we
> are entering idle, we check the latencies. Entering idle can be done thousand
> of times per second. Wouldn't make sense to disable the states not fulfilling
> the constraints at the moment the latencies are changed ? As the idle states
> have increasing exit latencies, setting an idle state limit to disable all
> states after that limit may be more efficient than checking again and again in
> the idle path, no ?

You'r right. save some checking is good thing to do.