Rev 6082 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6082 | Rev 6934 | ||
---|---|---|---|
Line 352... | Line 352... | ||
352 | * runtime. |
352 | * runtime. |
353 | * the HZ range specific helpers _msecs_to_jiffies() are called both |
353 | * the HZ range specific helpers _msecs_to_jiffies() are called both |
354 | * directly here and from __msecs_to_jiffies() in the case where |
354 | * directly here and from __msecs_to_jiffies() in the case where |
355 | * constant folding is not possible. |
355 | * constant folding is not possible. |
356 | */ |
356 | */ |
357 | static inline unsigned long msecs_to_jiffies(const unsigned int m) |
357 | static __always_inline unsigned long msecs_to_jiffies(const unsigned int m) |
358 | { |
358 | { |
359 | if (__builtin_constant_p(m)) { |
359 | if (__builtin_constant_p(m)) { |
360 | if ((int)m < 0) |
360 | if ((int)m < 0) |
361 | return MAX_JIFFY_OFFSET; |
361 | return MAX_JIFFY_OFFSET; |
362 | return _msecs_to_jiffies(m); |
362 | return _msecs_to_jiffies(m); |