diff options
author | Minchan Kim <minchan@kernel.org> | 2012-07-31 19:46:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:42:50 -0400 |
commit | 6527af5d1bea219d64095a5e30c1b1e0868aae16 (patch) | |
tree | 99f36cf0b3744e5d7cdaf52c22a3e9897e17f7bb /include/linux/vmstat.h | |
parent | 88fdf75d1bb51d85ba00c466391770056d44bc03 (diff) |
mm: remove redundant initialization
pg_data_t is zeroed before reaching free_area_init_core(), so remove the
now unnecessary initializations.
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/vmstat.h')
-rw-r--r-- | include/linux/vmstat.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 65efb92da996..ad2cfd53dadc 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -179,11 +179,6 @@ extern void zone_statistics(struct zone *, struct zone *, gfp_t gfp); | |||
179 | #define add_zone_page_state(__z, __i, __d) mod_zone_page_state(__z, __i, __d) | 179 | #define add_zone_page_state(__z, __i, __d) mod_zone_page_state(__z, __i, __d) |
180 | #define sub_zone_page_state(__z, __i, __d) mod_zone_page_state(__z, __i, -(__d)) | 180 | #define sub_zone_page_state(__z, __i, __d) mod_zone_page_state(__z, __i, -(__d)) |
181 | 181 | ||
182 | static inline void zap_zone_vm_stats(struct zone *zone) | ||
183 | { | ||
184 | memset(zone->vm_stat, 0, sizeof(zone->vm_stat)); | ||
185 | } | ||
186 | |||
187 | extern void inc_zone_state(struct zone *, enum zone_stat_item); | 182 | extern void inc_zone_state(struct zone *, enum zone_stat_item); |
188 | 183 | ||
189 | #ifdef CONFIG_SMP | 184 | #ifdef CONFIG_SMP |