Thread (5 messages) 5 messages, 3 authors, 2012-12-13

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

From: Rafael J. Wysocki <hidden>
Date: 2012-12-12 22:37:18
Also in: lkml

On Wednesday, December 12, 2012 09:00:53 PM Daniel Lezcano wrote:
On 12/12/2012 07:50 PM, Julius Werner wrote:
quoted
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.
Can you submit that second patch too, please, so that people don't have to
wonder?

Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help