X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Flinux%2Fu64_stats_sync.h;h=d3a2bb712af3b9613b98ef9c3219f8dcd31568a5;hb=46cc6e4976e3d9058490f20d93bc7805f7f2d81e;hp=df89c9bcba7db8dbde3bbf2b99f9af6ed562b112;hpb=01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba;p=deliverable%2Flinux.git diff --git a/include/linux/u64_stats_sync.h b/include/linux/u64_stats_sync.h index df89c9bcba7d..d3a2bb712af3 100644 --- a/include/linux/u64_stats_sync.h +++ b/include/linux/u64_stats_sync.h @@ -89,6 +89,20 @@ static inline void u64_stats_update_end(struct u64_stats_sync *syncp) #endif } +static inline void u64_stats_update_begin_raw(struct u64_stats_sync *syncp) +{ +#if BITS_PER_LONG==32 && defined(CONFIG_SMP) + raw_write_seqcount_begin(&syncp->seq); +#endif +} + +static inline void u64_stats_update_end_raw(struct u64_stats_sync *syncp) +{ +#if BITS_PER_LONG==32 && defined(CONFIG_SMP) + raw_write_seqcount_end(&syncp->seq); +#endif +} + static inline unsigned int u64_stats_fetch_begin(const struct u64_stats_sync *syncp) { #if BITS_PER_LONG==32 && defined(CONFIG_SMP)