Skip to content

Commit

Permalink
mm: remove initialization of static per-cpu variables
Browse files Browse the repository at this point in the history
This was required by some old, no-longer-used gcc on sparc.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Vegard Nossum authored and Linus Torvalds committed Jul 24, 2008
1 parent 27ac792 commit f84f950
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mm/swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit f84f950

Please sign in to comment.