Re: [PATCH v3 1/2] timers: Implement usleep_idle_range()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: SeongJae Park <sj@xxxxxxxxxx>

Andrew, I assume you want to pick that up along with the mm fix, right?

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux