1 #ifndef _LINUX_U64_STATS_SYNC_H
2 #define _LINUX_U64_STATS_SYNC_H
65 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
70 static inline void u64_stats_update_begin(
struct u64_stats_sync *syncp)
72 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
73 write_seqcount_begin(&syncp->seq);
77 static inline void u64_stats_update_end(
struct u64_stats_sync *syncp)
79 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
80 write_seqcount_end(&syncp->seq);
84 static inline unsigned int u64_stats_fetch_begin(
const struct u64_stats_sync *syncp)
86 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
87 return read_seqcount_begin(&syncp->seq);
96 static inline bool u64_stats_fetch_retry(
const struct u64_stats_sync *syncp,
99 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
100 return read_seqcount_retry(&syncp->seq, start);
102 #if BITS_PER_LONG==32
115 static inline unsigned int u64_stats_fetch_begin_bh(
const struct u64_stats_sync *syncp)
117 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
118 return read_seqcount_begin(&syncp->seq);
120 #if BITS_PER_LONG==32
127 static inline bool u64_stats_fetch_retry_bh(
const struct u64_stats_sync *syncp,
130 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
131 return read_seqcount_retry(&syncp->seq, start);
133 #if BITS_PER_LONG==32