Merge tag 'v3.10.76' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / mm / ksm.c
index 7bf748f30aab4f05c9828b6a98ee3400b96515e0..5c0d01827542dce79662d05f3edbbdc0bde287e3 100644 (file)
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -1714,7 +1714,9 @@ static int ksmd_should_run(void)
 static int ksm_scan_thread(void *nothing)
 {
        set_freezable();
-       set_user_nice(current, 5);
+       // M: set KSMD's priority to the lowest value
+       set_user_nice(current, 19);
+       //set_user_nice(current, 5);
 
        while (!kthread_should_stop()) {
                mutex_lock(&ksm_thread_mutex);