Re: [PATCH, v7] cgroups: introduce timer slack controller

From
Peter Zijlstra <peterz@infradead.org>
Date
2011-03-04 19:02:15
Also in
lkml
Reply to
Kirill A. Shutsemov, 2011-03-02
On Wed, 2011-03-02 at 18:40 +0200, Kirill A. Shutsemov wrote:
quoted hunk ↗ jump to hunk
-       if (ret < current->timer_slack_ns)
-               return current->timer_slack_ns;
-       return ret;
+       return clamp(__estimate_accuracy(&now),
+                       get_task_timer_slack(current), LONG_MAX);
That actually makes the code worse, how about:

  min(__estimate_accuracy(), get_task_timer_slack()) ?
Thread (10 messages) 10 messages, 5 authors, last reply 2011-03-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help