[PATCH 3/3] sched: Implement task_nice as static inline function.

2014-02-10 Thread Dongsheng Yang
As commit 0e0c0797 expose 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 implement it in linux/sched/sched.h as static inline function, saving the kernel stack and enhancing the performance. Signed-off-by:

[PATCH 3/3] sched: Implement task_nice as static inline function.

2014-02-10 Thread Dongsheng Yang
As commit 0e0c0797 expose 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 implement it in linux/sched/sched.h as static inline function, saving the kernel stack and enhancing the performance. Signed-off-by: