lkml.org 
[lkml]   [2014]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 06/17] tools/mq_perf_tests: Replace hardcoding of -20 with MIN_NICE.
Date
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
---
tools/testing/selftests/mqueue/mq_perf_tests.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c
index 2fadd4b..09dce51 100644
--- a/tools/testing/selftests/mqueue/mq_perf_tests.c
+++ b/tools/testing/selftests/mqueue/mq_perf_tests.c
@@ -527,9 +527,9 @@ void increase_limits(void)
while (try_set(max_msgsize, cur_max_msgsize += 1024))
;
cur_max_msgsize = get(max_msgsize);
- if (setpriority(PRIO_PROCESS, 0, -20) != 0)
+ if (setpriority(PRIO_PROCESS, 0, MIN_NICE) != 0)
shutdown(2, "setpriority()", __LINE__);
- cur_nice = -20;
+ cur_nice = MIN_NICE;
}

int main(int argc, char *argv[])
--
1.8.2.1


\
 
 \ /
  Last update: 2014-03-11 22:21    [W:0.260 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site