Re: [PATCH] timers: consider slack value in mod_timer()
From: Sebastian Andrzej Siewior
Date: Tue May 24 2011 - 08:13:50 EST
* Yong Zhang | 2011-05-24 15:54:17 [+0800]:
>> diff --git a/kernel/timer.c b/kernel/timer.c
>> index fd61986..bf09726 100644
>> --- a/kernel/timer.c
>> +++ b/kernel/timer.c
>> @@ -804,6 +804,8 @@ int mod_timer(struct timer_list *timer, unsigned long expires)
>> ?? ?? ?? ?? ?? ?? ?? ??return 1;
>>
>> ?? ?? ?? ??expires = apply_slack(timer, expires);
>
>So, why not move above line up, then we can use the recalculated
>expires?
We leave often before apply_slack() kicks in. From printks() it looks
like we leave more often in first "return 1" than in the second. Moving
that line up would lead to more __mode_timer() calls.
>
>Thanks,
>Yong
Sebastian
--
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/