Re: [PATCH tip/core/timers 2/4] timers: Reduce __run_timers()latency for empty list

From: Oleg Nesterov
Date: Wed Jan 15 2014 - 12:39:34 EST


forgot to mention...

On 01/14, Paul E. McKenney wrote:
>
> +static bool catchup_timer_jiffies(struct tvec_base *base)
> +{
> +#ifdef CONFIG_NO_HZ_FULL
> + if (!base->all_timers) {
> + base->timer_jiffies = jiffies;
> + return 1;
> + }
> +#endif /* #ifdef CONFIG_NO_HZ_FULL */
> + return 0;
> +}

Do we really want ifdef?

This check is cheap, and !CONFIG_NO_HZ_FULL case looks a bit
strange because we still update ->all_timers for no reason.

Oleg.

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