mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
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>
This commit is contained in:
parent
faf80d62e4
commit
bf2a76b317
1 changed files with 1 additions and 0 deletions
|
@ -1039,6 +1039,7 @@ static int kmemleak_scan_thread(void *arg)
|
||||||
static int first_run = 1;
|
static int first_run = 1;
|
||||||
|
|
||||||
pr_info("Automatic memory scanning thread started\n");
|
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.
|
* Wait before the first scan to allow the system to fully initialize.
|
||||||
|
|
Loading…
Reference in a new issue