Messages in this thread | | | From | Thomas Gleixner <> | Subject | Re: [PATCH v3 1/2] timers: Implement usleep_idle_range() | Date | Fri, 26 Nov 2021 22:26:06 +0100 |
| |
On Fri, Nov 26 2021 at 14:50, SeongJae Park wrote: > Some kernel threads such as DAMON could need to repeatedly sleep in > micro seconds level. Because usleep_range() sleeps in uninterruptible > state, however, such threads would make /proc/loadavg reports fake load. > > To help such cases, this commit implements a variant of usleep_range() > called usleep_idle_range(). It is same to usleep_range() but sets the > state of the current task as TASK_IDLE while sleeping. > > Suggested-by: Andrew Morton <akpm@linux-foundation.org> > Signed-off-by: SeongJae Park <sj@kernel.org>
Andrew, I assume you want to pick that up along with the mm fix, right?
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
| |