mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
sched/psi: Bail out early from irq time accounting
We could bail out early when psi was disabled. Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Chengming Zhou <zhouchengming@bytedance.com> Link: https://lore.kernel.org/r/20230926115722.467833-1-haifeng.xu@shopee.com
This commit is contained in:
parent
f577cd57bf
commit
0c2924079f
1 changed files with 3 additions and 0 deletions
|
@ -998,6 +998,9 @@ void psi_account_irqtime(struct task_struct *task, u32 delta)
|
|||
struct psi_group_cpu *groupc;
|
||||
u64 now;
|
||||
|
||||
if (static_branch_likely(&psi_disabled))
|
||||
return;
|
||||
|
||||
if (!task->pid)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue