Oh, Thanks.
I find the fllowing code:
with the predicted c state index, use "enter" handler to set CPU to into C 
state.


next_state = cpuidle_curr_governor->select(dev);

....


dev->last_residency = target_state->enter(dev, target_state);




Suppose it enter C1, but maybe C2 is better. The cpuidle wiil wait until next 
interrupt(timer or others) by keeping  C1 state ? or some time later make CPU 
enter into  C2 state? 



At 2010-12-30 00:42:29,"Arjan van de Ven" <ar...@linux.intel.com> wrote:

>On 12/29/2010 6:36 AM, wkq5325 wrote:
>> Hi,
>> I find the function "tick_nohz_get_sleep_length()" in menu.c
>> The source code says that it returns the length of the current sleep.
>> Is it predicted sleep time length or current sleep time length? I am 
>> confused a lot.
>> But Venkatesh's paper says that it is a predicted time.
>
>it's the time of the next timer.
>the actual prediction is a correction on top of that.
>
>>
>> Thanks.
>>
>>
>> wkq
>>
>>
>>
>> _______________________________________________
>> Discuss mailing list
>> Discuss@lesswatts.org
>> http://lists.lesswatts.org/listinfo/discuss
>



_______________________________________________
Discuss mailing list
Discuss@lesswatts.org
http://lists.lesswatts.org/listinfo/discuss

Reply via email to