Skip to content

Commit 102f085

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
timers: Rename usleep_idle_range() to usleep_range_idle()
usleep_idle_range() is a variant of usleep_range(). Both are using usleep_range_state() as a base. To be able to find all the related functions in one go, rename it usleep_idle_range() to usleep_range_idle(). No functional change. Signed-off-by: Anna-Maria Behnsen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Link: https://lore.kernel.org/all/20241014-devel-anna-maria-b4-timers-flseep-v3-4-dc8b907cb62f@linutronix.de
1 parent cf5b6ef commit 102f085

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/delay.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static inline void usleep_range(unsigned long min, unsigned long max)
6868
usleep_range_state(min, max, TASK_UNINTERRUPTIBLE);
6969
}
7070

71-
static inline void usleep_idle_range(unsigned long min, unsigned long max)
71+
static inline void usleep_range_idle(unsigned long min, unsigned long max)
7272
{
7373
usleep_range_state(min, max, TASK_IDLE);
7474
}

mm/damon/core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ static void kdamond_usleep(unsigned long usecs)
18961896
if (usecs > 20 * USEC_PER_MSEC)
18971897
schedule_timeout_idle(usecs_to_jiffies(usecs));
18981898
else
1899-
usleep_idle_range(usecs, usecs + 1);
1899+
usleep_range_idle(usecs, usecs + 1);
19001900
}
19011901

19021902
/* Returns negative error code if it's not activated but should return */

0 commit comments

Comments
 (0)