Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
include
/
linux
/
u64_stats_sync.h
diff --git
a/kernel/include/linux/u64_stats_sync.h
b/kernel/include/linux/u64_stats_sync.h
index
4b4439e
..
df89c9b
100644
(file)
--- a/
kernel/include/linux/u64_stats_sync.h
+++ b/
kernel/include/linux/u64_stats_sync.h
@@
-68,11
+68,12
@@
struct u64_stats_sync {
};
};
+static inline void u64_stats_init(struct u64_stats_sync *syncp)
+{
#if BITS_PER_LONG == 32 && defined(CONFIG_SMP)
#if BITS_PER_LONG == 32 && defined(CONFIG_SMP)
-# define u64_stats_init(syncp) seqcount_init(syncp.seq)
-#else
-# define u64_stats_init(syncp) do { } while (0)
+ seqcount_init(&syncp->seq);
#endif
#endif
+}
static inline void u64_stats_update_begin(struct u64_stats_sync *syncp)
{
static inline void u64_stats_update_begin(struct u64_stats_sync *syncp)
{