[PATCH v7 01/16] thread_info: Add update_thread_flag() helpers

Catalin Marinas catalin.marinas at arm.com
Thu May 10 09:15:26 PDT 2018

On Wed, May 09, 2018 at 05:12:50PM +0100, Dave P 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.Martin at arm.com>
> Acked-by: Steven Rostedt (VMware) <rostedt at goodmis.org>
> Acked-by: Marc Zyngier <marc.zyngier at arm.com>
> Cc: Ingo Molnar <mingo at redhat.com>
> Cc: Peter Zijlstra <peterz at infradead.org>
> Cc: Oleg Nesterov <oleg at redhat.com>


Acked-by: Catalin Marinas <catalin.marinas at arm.com>

More information about the linux-arm-kernel mailing list