diff options
Diffstat (limited to 'mm/damon')
-rw-r--r-- | mm/damon/core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/damon/core.c b/mm/damon/core.c index 511c3f61ab44..8b8e2933dcd4 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -1906,11 +1906,10 @@ static unsigned long damos_wmark_wait_us(struct damos *scheme) static void kdamond_usleep(unsigned long usecs) { - /* See Documentation/timers/timers-howto.rst for the thresholds */ - if (usecs > 20 * USEC_PER_MSEC) + if (usecs >= USLEEP_RANGE_UPPER_BOUND) schedule_timeout_idle(usecs_to_jiffies(usecs)); else - usleep_idle_range(usecs, usecs + 1); + usleep_range_idle(usecs, usecs + 1); } /* Returns negative error code if it's not activated but should return */ |