diff options
author | Dongsheng Yang <yangds.fnst@cn.fujitsu.com> | 2014-02-11 02:34:49 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-22 12:15:24 -0500 |
commit | d277d868dab6537a85f4757e39648b1d6afc60d5 (patch) | |
tree | b329cd794a1276145b3867afef1b2b3468ed0289 /kernel/rcu/torture.c | |
parent | 3ee237dddcd885d4e525791299d62de33b2ca117 (diff) |
rcu: Use MAX_NICE to replace hardcoding of 19
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/5b3bf232f41b33ab703a1595e94671b303e2d1fc.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/rcu/torture.c')
-rw-r--r-- | kernel/rcu/torture.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rcu/torture.c b/kernel/rcu/torture.c index 732f8ae3086a..219761db1a46 100644 --- a/kernel/rcu/torture.c +++ b/kernel/rcu/torture.c | |||
@@ -805,7 +805,7 @@ rcu_torture_writer(void *arg) | |||
805 | static DEFINE_RCU_RANDOM(rand); | 805 | static DEFINE_RCU_RANDOM(rand); |
806 | 806 | ||
807 | VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); | 807 | VERBOSE_PRINTK_STRING("rcu_torture_writer task started"); |
808 | set_user_nice(current, 19); | 808 | set_user_nice(current, MAX_NICE); |
809 | 809 | ||
810 | do { | 810 | do { |
811 | schedule_timeout_uninterruptible(1); | 811 | schedule_timeout_uninterruptible(1); |
@@ -871,7 +871,7 @@ rcu_torture_fakewriter(void *arg) | |||
871 | DEFINE_RCU_RANDOM(rand); | 871 | DEFINE_RCU_RANDOM(rand); |
872 | 872 | ||
873 | VERBOSE_PRINTK_STRING("rcu_torture_fakewriter task started"); | 873 | VERBOSE_PRINTK_STRING("rcu_torture_fakewriter task started"); |
874 | set_user_nice(current, 19); | 874 | set_user_nice(current, MAX_NICE); |
875 | 875 | ||
876 | do { | 876 | do { |
877 | schedule_timeout_uninterruptible(1 + rcu_random(&rand)%10); | 877 | schedule_timeout_uninterruptible(1 + rcu_random(&rand)%10); |
@@ -987,7 +987,7 @@ rcu_torture_reader(void *arg) | |||
987 | unsigned long long ts; | 987 | unsigned long long ts; |
988 | 988 | ||
989 | VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); | 989 | VERBOSE_PRINTK_STRING("rcu_torture_reader task started"); |
990 | set_user_nice(current, 19); | 990 | set_user_nice(current, MAX_NICE); |
991 | if (irqreader && cur_ops->irq_capable) | 991 | if (irqreader && cur_ops->irq_capable) |
992 | setup_timer_on_stack(&t, rcu_torture_timer, 0); | 992 | setup_timer_on_stack(&t, rcu_torture_timer, 0); |
993 | 993 | ||
@@ -1584,7 +1584,7 @@ static int rcu_torture_barrier_cbs(void *arg) | |||
1584 | 1584 | ||
1585 | init_rcu_head_on_stack(&rcu); | 1585 | init_rcu_head_on_stack(&rcu); |
1586 | VERBOSE_PRINTK_STRING("rcu_torture_barrier_cbs task started"); | 1586 | VERBOSE_PRINTK_STRING("rcu_torture_barrier_cbs task started"); |
1587 | set_user_nice(current, 19); | 1587 | set_user_nice(current, MAX_NICE); |
1588 | do { | 1588 | do { |
1589 | wait_event(barrier_cbs_wq[myid], | 1589 | wait_event(barrier_cbs_wq[myid], |
1590 | (newphase = | 1590 | (newphase = |