[PATCH v2 05/10] um: Determine sleep based on need_resched()

Johannes Berg johannes at sipsolutions.net
Wed Sep 10 05:10:37 PDT 2025


On Sun, 2025-08-10 at 13:51 +0800, Tiwei Bie wrote:
> From: Tiwei Bie <tiwei.btw at antgroup.com>
> 
> With SMP and NO_HZ enabled, the CPU may still need to sleep even
> if the timer is disarmed. Switch to deciding whether to sleep based
> on pending resched. This is a preparation for adding SMP support.

What's the rationale for need_resched()? Is that somehow defined for
this? Is it what other architectures use? I guess I'm just not entirely
sure what it means.

johannes



More information about the linux-um mailing list