|
@@ -253,8 +253,7 @@ static unsigned rt_hash_mask __read_mostly;
|
|
static unsigned int rt_hash_log __read_mostly;
|
|
static unsigned int rt_hash_log __read_mostly;
|
|
|
|
|
|
static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat);
|
|
static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat);
|
|
-#define RT_CACHE_STAT_INC(field) \
|
|
|
|
- (__raw_get_cpu_var(rt_cache_stat).field++)
|
|
|
|
|
|
+#define RT_CACHE_STAT_INC(field) __this_cpu_inc(rt_cache_stat.field)
|
|
|
|
|
|
static inline unsigned int rt_hash(__be32 daddr, __be32 saddr, int idx,
|
|
static inline unsigned int rt_hash(__be32 daddr, __be32 saddr, int idx,
|
|
int genid)
|
|
int genid)
|