Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH] net: tcp: Fix a PTO timing granularity issue | Date | Thu, 28 May 2015 08:55:35 +0000 |
| |
From: Ido Yariv > Sent: 28 May 2015 05:37 ... > +/* Convert msecs to jiffies, ensuring that the return value is at least 2 > + * jiffies. > + * This can be used when setting tick-based timers to guarantee that they won't > + * expire right away. > + */ > +static inline unsigned long tcp_safe_msecs_to_jiffies(const unsigned int m)
I don't like using 'safe' in function names, being 'safe; depends on what the caller wants. Maybe tcp_msecs_to_jiffies_min_2() would be better.
David
| |