Skip to content

Commit 3bcf789

Browse files
author
Andi Shyti
committed
drm/i915/gt: Use standard API for seqcount read in TLB invalidation
seqprop_sequence() is not intended for use outside seqlock.h. Although it is accessible as a macro, it is meant to be used only internally within the header. Replace it with its proper wrapper, raw_read_seqcount(). Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Co-developed-by: Jani Nikula <jani.nikula@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@linux.intel.com> Cc: Christoph Lameter (Ampere) <cl@gentwo.org> Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com> Link: https://lore.kernel.org/r/20251023132802.654061-1-andi.shyti@linux.intel.com
1 parent d4550f5 commit 3bcf789

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/gt/intel_tlb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void intel_gt_fini_tlb(struct intel_gt *gt);
1818

1919
static inline u32 intel_gt_tlb_seqno(const struct intel_gt *gt)
2020
{
21-
return seqprop_sequence(&gt->tlb.seqno);
21+
return raw_read_seqcount(&gt->tlb.seqno);
2222
}
2323

2424
static inline u32 intel_gt_next_invalidate_tlb_full(const struct intel_gt *gt)

0 commit comments

Comments
 (0)