Re: [RFC PATCH 1/6] thread_info: Add update_thread_flag() helpers

2018-05-23 Thread Will Deacon
On Thu, Apr 19, 2018 at 11:58:43AM +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

[RFC PATCH 1/6] thread_info: Add update_thread_flag() helpers

2018-04-19 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