On Thu, May 24, 2018 at 05:56:31PM +0100, Dave Martin wrote:
> There are a number of bits of code sprinkled around the kernel to
> set a thread flag if a certain condition is true, and clear it
> otherwise.
> 
> To help make those call sites terser and less cumbersome, this
> patch adds a new family of thread flag manipulators
> 
>       update*_thread_flag([...,] flag, cond)
> 
> which do the equivalent of:
> 
>       if (cond)
>               set*_thread_flag([...,] flag);
>       else
>               clear*_thread_flag([...,] flag);
> 
> Signed-off-by: Dave Martin <dave.mar...@arm.com>
> Reviewed-by: Alex Bennée <alex.ben...@linaro.org>
> Acked-by: Steven Rostedt (VMware) <rost...@goodmis.org>
> Acked-by: Marc Zyngier <marc.zyng...@arm.com>
> Acked-by: Catalin Marinas <catalin.mari...@arm.com>
> Cc: Ingo Molnar <mi...@redhat.com>

Acked-by: Peter Zijlstra (Intel) <pet...@infradead.org>
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

Reply via email to