Skip to content

Commit

Permalink
mm: remove CONFIG_HOTPLUG ifdefs
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG
ifdefs in mm files.

Signed-off-by: Yijing Wang <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
YijingWang authored and torvalds committed Apr 29, 2013
1 parent 573b400 commit f1cb087
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions include/linux/vmstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,8 @@ static inline void count_vm_events(enum vm_event_item item, long delta)
}

extern void all_vm_events(unsigned long *);
#ifdef CONFIG_HOTPLUG

extern void vm_events_fold_cpu(int cpu);
#else
static inline void vm_events_fold_cpu(int cpu)
{
}
#endif

#else

Expand Down
2 changes: 0 additions & 2 deletions mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ void all_vm_events(unsigned long *ret)
}
EXPORT_SYMBOL_GPL(all_vm_events);

#ifdef CONFIG_HOTPLUG
/*
* Fold the foreign cpu events into our own.
*
Expand All @@ -69,7 +68,6 @@ void vm_events_fold_cpu(int cpu)
fold_state->event[i] = 0;
}
}
#endif /* CONFIG_HOTPLUG */

#endif /* CONFIG_VM_EVENT_COUNTERS */

Expand Down

0 comments on commit f1cb087

Please sign in to comment.