sched: Implement task_nice() as static inline function
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Tue, 28 Jan 2014 03:00:45 +0000 (22:00 -0500)
committerIngo Molnar <mingo@kernel.org>
Sun, 9 Feb 2014 14:28:23 +0000 (15:28 +0100)
commitd0ea026808ad81de2af14938448419a95211b938
tree217b1467d99ea3b5dbffe9754979ff4d033ef44c
parent6b6350f155afdfdf888e18c7bf26950a6d10b0c2
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 <yangds.fnst@cn.fujitsu.com>
Cc: clark.williams@gmail.com
Cc: rostedt@goodmis.org
Cc: raistlin@linux.it
Cc: juri.lelli@gmail.com
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1390878045-7096-1-git-send-email-yangds.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
include/linux/sched/prio.h
kernel/sched/core.c
kernel/sched/cputime.c