lkml.org 
[lkml]   [2012]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] cpuidle - remove the power_specified field in the driver
From
Thanks again for making this happen, Daniel. I like this version,
except for the small nitpick that I still think it would make sense to
also turn the loop in menu.c around. How about something like this:

for (i = drv->state_count - 1; i >= CPUIDLE_DRIVER_STATE_START; i++) {
struct cpuidle_state *s = &drv->states[i];
if (!s->disable && s->exit_latency <= latency_req &&
s->target_residency <= data->predicted_us &&
s->exit_latency * multiplier <= data->predicted_us) {
data->last_state_idx = i;
data->exit_us = s->exit_latency;
break;
}
}


\
 
 \ /
  Last update: 2012-12-12 20:21    [W:0.047 / U:1.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site