diff options
author | Dongsheng Yang <yangds.fnst@cn.fujitsu.com> | 2014-03-11 06:09:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-04-18 06:07:24 -0400 |
commit | 8698a745d800c59cd5a576398bdeccd578ac66f1 (patch) | |
tree | cba75113883cebed085a55898e570cedd69e0ed3 /mm | |
parent | 10447917551e0fffb8d1892d46e633c3e0a9c1ec (diff) |
sched, treewide: Replace hardcoded nice values with MIN_NICE/MAX_NICE
Replace various -20/+19 hardcoded nice values with MIN_NICE/MAX_NICE.
Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/ff13819fd09b7a5dba5ab5ae797f2e7019bdfa17.1394532288.git.yangds.fnst@cn.fujitsu.com
Cc: devel@driverdev.osuosl.org
Cc: devicetree@vger.kernel.org
Cc: fcoe-devel@open-fcoe.org
Cc: linux390@de.ibm.com
Cc: linux-kernel@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: linux-s390@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Cc: nbd-general@lists.sourceforge.net
Cc: ocfs2-devel@oss.oracle.com
Cc: openipmi-developer@lists.sourceforge.net
Cc: qla2xxx-upstream@qlogic.com
Cc: linux-arch@vger.kernel.org
[ Consolidated the patches, twiddled the changelog. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/huge_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 1546655a2d78..dcdb6f9adea1 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c | |||
@@ -2803,7 +2803,7 @@ static int khugepaged(void *none) | |||
2803 | struct mm_slot *mm_slot; | 2803 | struct mm_slot *mm_slot; |
2804 | 2804 | ||
2805 | set_freezable(); | 2805 | set_freezable(); |
2806 | set_user_nice(current, 19); | 2806 | set_user_nice(current, MAX_NICE); |
2807 | 2807 | ||
2808 | while (!kthread_should_stop()) { | 2808 | while (!kthread_should_stop()) { |
2809 | khugepaged_do_scan(); | 2809 | khugepaged_do_scan(); |