diff options
author | Dongsheng Yang <yangds.fnst@cn.fujitsu.com> | 2014-02-11 15:34:50 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-22 18:15:54 +0100 |
commit | 75e45d512f257beedae0d8a67d053cde5537bd4c (patch) | |
tree | f2171633db9ee6b3227aea69cede99041d1c69dc /kernel/sched/auto_group.c | |
parent | d277d868dab6537a85f4757e39648b1d6afc60d5 (diff) | |
download | linux-75e45d512f257beedae0d8a67d053cde5537bd4c.tar.bz2 |
sched: Replace hardcoding of -20 and 19 with MIN_NICE and MAX_NICE
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/bd80780f19b4f9b4a765acc353c8dbc130274dd6.1392103744.git.yangds.fnst@cn.fujitsu.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/auto_group.c')
-rw-r--r-- | kernel/sched/auto_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/auto_group.c b/kernel/sched/auto_group.c index 4a073539c58e..e73efba98301 100644 --- a/kernel/sched/auto_group.c +++ b/kernel/sched/auto_group.c @@ -203,7 +203,7 @@ int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) struct autogroup *ag; int err; - if (nice < -20 || nice > 19) + if (nice < MIN_NICE || nice > MAX_NICE) return -EINVAL; err = security_task_setnice(current, nice); |