aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorDave Martin <[email protected]>2018-04-11 17:54:20 +0100
committerMarc Zyngier <[email protected]>2018-05-25 12:27:53 +0100
commit93ee37c2a6a97e5d358af2d8f0510817b6e75679 (patch)
tree25ac1eba47eb4b98989c766bc3ea7383cc5e933a /tools/perf/scripts/python/sched-migration.py
parentd8ad71fa38a96128ebb0462539fee6cb9391d17b (diff)
thread_info: Add update_thread_flag() helpers
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 <[email protected]> Reviewed-by: Alex BennĂ©e <[email protected]> Acked-by: Steven Rostedt (VMware) <[email protected]> Acked-by: Marc Zyngier <[email protected]> Acked-by: Catalin Marinas <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions