[PATCH 17/15] rcuwait: Inform rcuwait_wake_up() users if a wakeup was attempted

Sebastian Andrzej Siewior bigeasy at linutronix.de
Fri Mar 20 20:13:41 AEDT 2020


On 2020-03-20 01:55:25 [-0700], Davidlohr Bueso wrote:
> Let the caller know if wake_up_process() was actually called or not;
> some users can use this information for ad-hoc. Of course returning
> true does not guarantee that wake_up_process() actually woke anything
> up.

Wouldn't it make sense to return wake_up_process() return value to know
if a change of state occurred or not?

Sebastian


More information about the Linuxppc-dev mailing list