On Fri, Mar 04, 2011 at 08:03:42PM +0100, Peter Zijlstra wrote: > On Wed, 2011-03-02 at 18:40 +0200, Kirill A. Shutsemov wrote: > > - 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()) ? It's better. Thanks. -- Kirill A. Shutemov _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers