Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf2a76b3 authored by Catalin Marinas's avatar Catalin Marinas
Browse files

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: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent faf80d62
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.