Thread (5 messages) 5 messages, 3 authors, 2018-08-24

Re: [PATCH] cpuidle: menu: Retain tick when shallow state is selected

From: <hidden>
Date: 2018-08-22 12:03:40
Also in: lkml

On Wed, Aug 22, 2018 at 08:02:00PM +0800, Leo Yan wrote:

[...]
quoted
+			if (!tick_nohz_tick_stopped()) {
+				/*
+				 * If the state selected so far is shallow,
+				 * waking up early won't hurt, so retain the
+				 * tick in that case and let the governor run
+				 * again in the next iteration of the loop.
+				 */
+				expected_interval = drv->states[idx].target_residency;
+				break;
+			}
+
This is reliable, how we can rely on a shallow idle state target
residency to decide if need to stop a tick or not?
s/This is reliable/This isn't reliable
quoted
 			/*
 			 * If the state selected so far is shallow and this
 			 * state's target residency matches the time till the
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help