Simple LMK's reclaim thread needs to run as quickly as possible to
reduce memory allocation latency when memory pressure is high. Mark it
as performance critical to schedule it on faster CPUs.
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
if (atomic_cmpxchg(&init_done, 0, 1))
return 0;
- thread = kthread_run(simple_lmk_reclaim_thread, NULL, "simple_lmkd");
+ thread = kthread_run_perf_critical(simple_lmk_reclaim_thread, NULL,
+ "simple_lmkd");
BUG_ON(IS_ERR(thread));
return 0;