lkml.org 
[lkml]   [2011]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH, v7] cgroups: introduce timer slack controller
From
Date
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()) ?





\
 
 \ /
  Last update: 2011-03-06 12:29    [W:0.140 / U:3.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site