Re: [PATCH 01/11] time: add *_to_jiffies_min helpers to guarantee aminimum duration
From: Jean Delvare
Date: Mon May 13 2013 - 04:17:24 EST
BTW...
On Fri, 10 May 2013 15:13:19 +0300, Imre Deak wrote:
> +#define __define_time_to_jiffies_min(tname, ttype) \
> +static inline unsigned long \
> +tname ## _to_jiffies_min(const ttype m) \
> +{ \
> + return max_t(long, MAX_JIFFY_OFFSET, tname ## _to_jiffies(m) + 1);\
> +}
How would this work at all? Isn't it going to just return
MAX_JIFFY_OFFSET all the time?
--
Jean Delvare
--
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/