Re: [PATCH v2 3/3] alarmtimer: switch some spin_{lock,unlock}_irqsave() to guard()

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

 



On Sun, Apr 27, 2025 at 4:35 AM Su Hui <suhui@xxxxxxxxxxxx> wrote:
>
> Using guard/scoped_guard() to simplify code. Using guard() to remove
> 'goto unlock' label is neater especially.
>
> Signed-off-by: Su Hui <suhui@xxxxxxxxxxxx>
> ---
> v2:
>  - Remove some guard() usages acrodding to john's suggestions.
>
>  kernel/time/alarmtimer.c | 56 +++++++++++++++++-----------------------
>  1 file changed, 23 insertions(+), 33 deletions(-)

Looks ok to me.
Acked-by: John Stultz <jstultz@xxxxxxxxxx>

thanks!
-john





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux