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

From: Peter Zijlstra
Date: Fri Mar 04 2011 - 14:02:18 EST


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()) ?



--
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/