projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faf80d6
)
kmemleak: Renice the scanning thread to +10
author
Catalin Marinas
<catalin.marinas@arm.com>
Tue, 7 Jul 2009 09:32:55 +0000
(10:32 +0100)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Tue, 7 Jul 2009 09:32:55 +0000
(10:32 +0100)
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>
mm/kmemleak.c
patch
|
blob
|
history
diff --git
a/mm/kmemleak.c
b/mm/kmemleak.c
index e766e1da09d2880ea9db6f07fd869e9c758f8d3b..60065531f60c81d9b055ae8fa2d4286274c76b2e 100644
(file)
--- a/
mm/kmemleak.c
+++ b/
mm/kmemleak.c
@@
-1039,6
+1039,7
@@
static int kmemleak_scan_thread(void *arg)
static int first_run = 1;
pr_info("Automatic memory scanning thread started\n");
+ set_user_nice(current, 10);
/*
* Wait before the first scan to allow the system to fully initialize.