]> Git Repo - linux.git/commit - include/trace/events/sched.h
sched/debug: Use symbolic names for task state constants
authorUwe Kleine-König <[email protected]>
Wed, 5 Sep 2018 09:36:36 +0000 (11:36 +0200)
committerIngo Molnar <[email protected]>
Mon, 10 Sep 2018 09:05:56 +0000 (11:05 +0200)
commitff28915fd31ccafc0d38e6f84b66df280ed9e86a
treefc05512d865bdb0036b7d6ec077972417f6dbeb6
parent7477a3504e619768c9e972dafe2907e6b8ed9823
sched/debug: Use symbolic names for task state constants

include/trace/events/sched.h includes <linux/sched.h> (via
<linux/sched/numa_balancing.h>) and so knows about the TASK_* constants
used to interpret .prev_state. So instead of duplicating the magic
numbers make use of the defined macros to ease understanding the
mapping from state bits to letters which isn't completely intuitive for
an outsider.

Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
include/trace/events/sched.h
This page took 0.051245 seconds and 4 git commands to generate.