diff options
| author | Sean Christopherson <[email protected]> | 2025-05-16 21:35:39 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2025-06-20 20:41:03 +0000 |
| commit | e46ad851150f1dd14b8542b6fb7a51f695a99eb1 (patch) | |
| tree | 2a87fa8efd86535546003a7bb54bd273e59a8098 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | KVM: Check for empty mask of harvested dirty ring entries in caller (diff) | |
| download | kernel-e46ad851150f1dd14b8542b6fb7a51f695a99eb1.tar.gz kernel-e46ad851150f1dd14b8542b6fb7a51f695a99eb1.zip | |
KVM: Use mask of harvested dirty ring entries to coalesce dirty ring resets
Use "mask" instead of a dedicated boolean to track whether or not there
is at least one to-be-reset entry for the current slot+offset. In the
body of the loop, mask is zero only on the first iteration, i.e. !mask is
equivalent to first_round.
Opportunistically combine the adjacent "if (mask)" statements into a single
if-statement.
No functional change intended.
Cc: Peter Xu <[email protected]>
Cc: Yan Zhao <[email protected]>
Cc: Maxim Levitsky <[email protected]>
Reviewed-by: Pankaj Gupta <[email protected]>
Reviewed-by: James Houghton <[email protected]>
Reviewed-by: Binbin Wu <[email protected]>
Reviewed-by: Yan Zhao <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
