@@ -112,4 +112,4 @@ NON-ATOMIC CONTEXT:
you know you have a need for the interruptible variant.
FLEXIBLE SLEEPING (any delay, uninterruptible)
- * Use fsleep
+ * Use usleep_autoyield
@@ -78,7 +78,7 @@ static inline void ssleep(unsigned int seconds)
}
/* see Documentation/timers/timers-howto.rst for the thresholds */
-static inline void fsleep(unsigned long usecs)
+static inline void usleep_autoyield(unsigned long usecs)
{
if (usecs <= 10)
udelay(usecs);
@@ -88,4 +88,6 @@ static inline void fsleep(unsigned long usecs)
msleep(DIV_ROUND_UP(usecs, 1000));
}
+#define fsleep usleep_autoyield
+
#endif /* defined(_LINUX_DELAY_H) */
Rename fsleep because the current name breaks the pattern of the first letter being a unit (and it is not 'femto' here). Let's add the proper unit again and add a suffix to the function which will hopefully be a bit more explanatory. To give some time until all users are converted, introduce a fallback define which will go away later. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- Documentation/timers/timers-howto.rst | 2 +- include/linux/delay.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)