From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by kanga.kvack.org (Postfix) with ESMTP id 97B4B6B0062 for ; Tue, 11 Mar 2014 01:01:53 -0400 (EDT) Received: by mail-pa0-f50.google.com with SMTP id kq14so8279618pab.37 for ; Mon, 10 Mar 2014 22:01:53 -0700 (PDT) Received: from song.cn.fujitsu.com ([222.73.24.84]) by mx.google.com with ESMTP id vo7si18905528pab.103.2014.03.10.22.01.50 for ; Mon, 10 Mar 2014 22:01:52 -0700 (PDT) From: Dongsheng Yang Subject: [PATCH 06/15] mm: Replace hardcoding of 19 with MAX_NICE. Date: Tue, 11 Mar 2014 12:59:21 +0800 Message-Id: In-Reply-To: References: Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org Cc: joe@perches.com, peterz@infradead.org, mingo@kernel.org, tglx@linutronix.de, Dongsheng Yang , linux-mm@kvack.org, Bob Liu , "Aneesh Kumar K.V" , "Kirill A. Shutemov" , Mel Gorman , Rik van Riel , Andrew Morton Signed-off-by: Dongsheng Yang cc: linux-mm@kvack.org cc: Bob Liu cc: "Aneesh Kumar K.V" cc: "Kirill A. Shutemov" cc: Mel Gorman cc: Rik van Riel cc: Andrew Morton --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 1546655..dcdb6f9 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2803,7 +2803,7 @@ static int khugepaged(void *none) struct mm_slot *mm_slot; set_freezable(); - set_user_nice(current, 19); + set_user_nice(current, MAX_NICE); while (!kthread_should_stop()) { khugepaged_do_scan(); -- 1.8.2.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org