Re: [PATCH] cpuidle - remove the power_specified field in the driver

From: Daniel Lezcano
Date: Wed Dec 12 2012 - 15:00:52 EST


On 12/12/2012 07:50 PM, Julius Werner wrote:
> 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;
> }
> }

Actually I was planning to do that in a separate patch.


--
<http://www.linaro.org/> Linaro.org â Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/