Re: [RESEND PATCH] irq_work: improve the flag definitions

From: Frederic Weisbecker
Date: Mon Dec 11 2017 - 09:52:19 EST


2017-11-27 11:52 UTC+01:00, Bartosz Golaszewski <brgl@xxxxxxxx>:
> IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it
> says nothing about its purpose. Define IRQ_WORK_FLAGS as a bitwise
> OR of IRQ_WORK_PENDING and IRQ_WORK_BUSY and change its name to
> IRQ_WORK_CLAIMED.
>
> While we're at it: use the BIT() macro for all flags.
>
> Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>

Nice!

Acked-by: Frederic Weisbecker <frederic@xxxxxxxxxx>