diff options
| author | Yafang Shao <[email protected]> | 2025-01-03 02:24:08 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2025-01-13 13:10:26 +0000 |
| commit | a6fd16148fdd7e9da143037106956a3447c247a8 (patch) | |
| tree | e2e8d1f87bba29d38768ddd64ef1e21bb7d8d386 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | |
| parent | sched: Don't account irq time if sched_clock_irqtime is disabled (diff) | |
| download | kernel-a6fd16148fdd7e9da143037106956a3447c247a8.tar.gz kernel-a6fd16148fdd7e9da143037106956a3447c247a8.zip | |
sched, psi: Don't account irq time if sched_clock_irqtime is disabled
sched_clock_irqtime may be disabled due to the clock source. When disabled,
irq_time_read() won't change over time, so there is nothing to account. We
can save iterating the whole hierarchy on every tick and context switch.
Signed-off-by: Yafang Shao <[email protected]>
Signed-off-by: Yafang Shao <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Michal Koutný <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions
