diff options
| author | Peter Zijlstra <[email protected]> | 2021-12-25 00:04:57 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2022-01-18 11:09:59 +0000 |
| commit | 7e406d1ff39b8ee574036418a5043c86723170cf (patch) | |
| tree | be7b54af0c125126592596a0a37b95bb3d875355 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
| parent | sched/fair: Fix all kernel-doc warnings (diff) | |
| download | kernel-7e406d1ff39b8ee574036418a5043c86723170cf.tar.gz kernel-7e406d1ff39b8ee574036418a5043c86723170cf.zip | |
sched: Avoid double preemption in __cond_resched_*lock*()
For PREEMPT/DYNAMIC_PREEMPT the *_unlock() will already trigger a
preemption, no point in then calling preempt_schedule_common()
*again*.
Use _cond_resched() instead, since this is a NOP for the preemptible
configs while it provide a preemption point for the others.
Reported-by: xuhaifeng <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions
