diff options
author | Dongsheng Yang <[email protected]> | 2014-01-27 22:00:45 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-02-09 15:28:23 +0100 |
commit | d0ea026808ad81de2af14938448419a95211b938 (patch) | |
tree | 217b1467d99ea3b5dbffe9754979ff4d033ef44c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6b6350f155afdfdf888e18c7bf26950a6d10b0c2 (diff) |
sched: Implement task_nice() as static inline function
As patch "sched: Move the priority specific bits into a new header file" exposes
the priority related macros in linux/sched/prio.h, we don't have to implement
task_nice() in kernel/sched/core.c any more.
This patch implements it in linux/sched/sched.h as static inline function,
saving the kernel stack and enhancing performance a bit.
Signed-off-by: Dongsheng Yang <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions