Skip to contentSkip to conversation

mm: remove initialization of static per-cpu variables

PATCH New Vegard Nossum 1 participant 1 message Jun 12, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: remove initialization of static per-cpu variables

From: Vegard Nossum <[email protected]>
Date: Thu, 12 Jun 2008 22:21:29 +0200
Subject: [PATCH] mm: remove initialization of static per-cpu variables

---
 mm/swap.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
mm/swap.c +4 -4
index 45c9f25..dd89234 100644
@@ -34,9 +34,9 @@
 /* How many pages do we try to swap or page in/out together? */
 int page_cluster;
 
-static DEFINE_PER_CPU(struct pagevec, lru_add_pvecs) = { 0, };
-static DEFINE_PER_CPU(struct pagevec, lru_add_active_pvecs) = { 0, };
-static DEFINE_PER_CPU(struct pagevec, lru_rotate_pvecs) = { 0, };
+static DEFINE_PER_CPU(struct pagevec, lru_add_pvecs);
+static DEFINE_PER_CPU(struct pagevec, lru_add_active_pvecs);
+static DEFINE_PER_CPU(struct pagevec, lru_rotate_pvecs);
 
 /*
  * This path almost never happens for VM activity - pages are normally
@@ -493,7 +493,7 @@ EXPORT_SYMBOL(pagevec_lookup_tag);
  */
 #define ACCT_THRESHOLD	max(16, NR_CPUS * 2)
 
-static DEFINE_PER_CPU(long, committed_space) = 0;
+static DEFINE_PER_CPU(long, committed_space);
 
 void vm_acct_memory(long pages)
 {
Signature · 1 line
1.5.4.1