Commit 4e3d9cb0 authored by Thomas Gleixner's avatar Thomas Gleixner

jiffies: Remove the extra indentation level

Somehow I missed to clean that up when applying the patches. Fix it up
now.
Reported-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Nicholas Mc Guire <der.herr@hofr.at>
parent d2540875
...@@ -298,7 +298,7 @@ extern unsigned long __msecs_to_jiffies(const unsigned int m); ...@@ -298,7 +298,7 @@ extern unsigned long __msecs_to_jiffies(const unsigned int m);
*/ */
static inline unsigned long _msecs_to_jiffies(const unsigned int m) static inline unsigned long _msecs_to_jiffies(const unsigned int m)
{ {
return (m + (MSEC_PER_SEC / HZ) - 1) / (MSEC_PER_SEC / HZ); return (m + (MSEC_PER_SEC / HZ) - 1) / (MSEC_PER_SEC / HZ);
} }
#elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC) #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC)
/* /*
...@@ -309,9 +309,9 @@ static inline unsigned long _msecs_to_jiffies(const unsigned int m) ...@@ -309,9 +309,9 @@ static inline unsigned long _msecs_to_jiffies(const unsigned int m)
*/ */
static inline unsigned long _msecs_to_jiffies(const unsigned int m) static inline unsigned long _msecs_to_jiffies(const unsigned int m)
{ {
if (m > jiffies_to_msecs(MAX_JIFFY_OFFSET)) if (m > jiffies_to_msecs(MAX_JIFFY_OFFSET))
return MAX_JIFFY_OFFSET; return MAX_JIFFY_OFFSET;
return m * (HZ / MSEC_PER_SEC); return m * (HZ / MSEC_PER_SEC);
} }
#else #else
/* /*
...@@ -320,11 +320,10 @@ static inline unsigned long _msecs_to_jiffies(const unsigned int m) ...@@ -320,11 +320,10 @@ static inline unsigned long _msecs_to_jiffies(const unsigned int m)
*/ */
static inline unsigned long _msecs_to_jiffies(const unsigned int m) static inline unsigned long _msecs_to_jiffies(const unsigned int m)
{ {
if (HZ > MSEC_PER_SEC && m > jiffies_to_msecs(MAX_JIFFY_OFFSET)) if (HZ > MSEC_PER_SEC && m > jiffies_to_msecs(MAX_JIFFY_OFFSET))
return MAX_JIFFY_OFFSET; return MAX_JIFFY_OFFSET;
return (MSEC_TO_HZ_MUL32 * m + MSEC_TO_HZ_ADJ32) return (MSEC_TO_HZ_MUL32 * m + MSEC_TO_HZ_ADJ32) >> MSEC_TO_HZ_SHR32;
>> MSEC_TO_HZ_SHR32;
} }
#endif #endif
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment