aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-10-08 20:33:48 +0200
committerIngo Molnar <[email protected]>2014-10-28 10:47:56 +0100
commite2336f6e51edda875a49770b616ed5b02a74665b (patch)
tree36cb6f16841d5e2ee4363b0ec8c421e22942fb5f /tools/perf/scripts/python/bin
parentdfa50b605c2a933b7bb1c1d575a0da4e897e3c7d (diff)
sched: Kill task_preempt_count()
task_preempt_count() is pointless if preemption counter is per-cpu, currently this is x86 only. It is only valid if the task is not running, and even in this case the only info it can provide is the state of PREEMPT_ACTIVE bit. Change its single caller to check p->on_rq instead, this should be the same if p->state != TASK_RUNNING, and kill this helper. Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Kirill Tkhai <[email protected]> Cc: Alexander Graf <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions