mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
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
30 lines
621 B
C
30 lines
621 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef INTEL_TLB_H
|
|
#define INTEL_TLB_H
|
|
|
|
#include <linux/seqlock.h>
|
|
#include <linux/types.h>
|
|
|
|
#include "intel_gt_types.h"
|
|
|
|
void intel_gt_invalidate_tlb_full(struct intel_gt *gt, u32 seqno);
|
|
|
|
void intel_gt_init_tlb(struct intel_gt *gt);
|
|
void intel_gt_fini_tlb(struct intel_gt *gt);
|
|
|
|
static inline u32 intel_gt_tlb_seqno(const struct intel_gt *gt)
|
|
{
|
|
return raw_read_seqcount(>->tlb.seqno);
|
|
}
|
|
|
|
static inline u32 intel_gt_next_invalidate_tlb_full(const struct intel_gt *gt)
|
|
{
|
|
return intel_gt_tlb_seqno(gt) | 1;
|
|
}
|
|
|
|
#endif /* INTEL_TLB_H */
|