sched: Use clamp() and clamp_val() to make sys_nice() more readable
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Thu, 8 May 2014 09:35:15 +0000 (18:35 +0900)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 May 2014 09:16:31 +0000 (11:16 +0200)
commita9467fa3cd2d5bf39e7cb7d0706d29d7ef4df212
tree3cdc0ddf76f3b081ba3b5a2b061638595d117a33
parentcaffcdd8d27ba78730d5540396ce72ad022aff2c
sched: Use clamp() and clamp_val() to make sys_nice() more readable

Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1399541715-19568-1-git-send-email-yangds.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c