Re: [PATCH v11 02/19] thread_info: Add update_thread_flag() helpers

2018-05-24 Thread Peter Zijlstra
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 famil

[PATCH v11 02/19] thread_info: Add update_thread_flag() helpers

2018-05-24 Thread Dave Martin
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, c