diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-07 05:32:55 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-07 05:32:55 -0400 |
commit | bf2a76b317c6ccc6f7b6b1dc09664c5b6a155c61 (patch) | |
tree | f3395c384585c2d52a60bb4ae143f1153e604118 | |
parent | faf80d62e44dc627efb741f48db50c1858d1667c (diff) |
kmemleak: Renice the scanning thread to +10
This is a long-running thread but not high-priority. So it makes sense
to renice it to +10.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r-- | mm/kmemleak.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c index e766e1da09d2..60065531f60c 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c | |||
@@ -1039,6 +1039,7 @@ static int kmemleak_scan_thread(void *arg) | |||
1039 | static int first_run = 1; | 1039 | static int first_run = 1; |
1040 | 1040 | ||
1041 | pr_info("Automatic memory scanning thread started\n"); | 1041 | pr_info("Automatic memory scanning thread started\n"); |
1042 | set_user_nice(current, 10); | ||
1042 | 1043 | ||
1043 | /* | 1044 | /* |
1044 | * Wait before the first scan to allow the system to fully initialize. | 1045 | * Wait before the first scan to allow the system to fully initialize. |