diff options
| author | Frederic Weisbecker <[email protected]> | 2019-11-08 16:08:57 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2019-11-11 08:03:31 +0000 |
| commit | feb4a51323babe13315c3b783ea7f1cf25368918 (patch) | |
| tree | 5ff36d9d23ddfc23be5bee4caf1c7cb6b8242024 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | irq_work: Fix irq_work_claim() memory ordering (diff) | |
| download | kernel-feb4a51323babe13315c3b783ea7f1cf25368918.tar.gz kernel-feb4a51323babe13315c3b783ea7f1cf25368918.zip | |
irq_work: Slightly simplify IRQ_WORK_PENDING clearing
Instead of fetching the value of flags and perform an xchg() to clear
a bit, just use atomic_fetch_andnot() that is more suitable to do that
job in one operation while keeping the full ordering.
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E . McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
