sched/psi: Remove NR_ONCPU task accounting
mainline inclusion from mainline-v6.1-rc1 commit 71dbdde7 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8BCV4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71dbdde7914d32e86f01ac1f6e54e964c9dfdbd9 -------------------------------- We put all fields updated by the scheduler in the first cacheline of struct psi_group_cpu for performance. Since we want add another PSI_IRQ_FULL to track IRQ/SOFTIRQ pressure, we need to reclaim space first. This patch remove NR_ONCPU task accounting in struct psi_group_cpu, use one bit in state_mask to track instead. Signed-off-by:Johannes Weiner <hannes@cmpxchg.org> Signed-off-by:
Chengming Zhou <zhouchengming@bytedance.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Chengming Zhou <zhouchengming@bytedance.com> Tested-by:
Chengming Zhou <zhouchengming@bytedance.com> Link: https://lore.kernel.org/r/20220825164111.29534-7-zhouchengming@bytedance.com Conflict: include/linux/psi_types.h Signed-off-by:
Lu Jialin <lujialin4@huawei.com>
Loading
Please sign in to comment