mm: remove CONFIG_HOTPLUG ifdefs
authorYijing Wang <[email protected]>
Mon, 29 Apr 2013 22:08:14 +0000 (15:08 -0700)
committerLinus Torvalds <[email protected]>
Mon, 29 Apr 2013 22:54:37 +0000 (15:54 -0700)
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]>
include/linux/vmstat.h
mm/vmstat.c

index 5fd71a7d0dfd05a88fd7b241c4ada4b1211d1601..c586679b6fefd4f8f15fe68d123295fc4d7af39f 100644 (file)
@@ -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
 
index e1d8ed172c42da344e23cd409158ae8086a4e24a..c823776f7059c5c57c6b6c9c42af1763da202a56 100644 (file)
@@ -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.
  *
@@ -69,7 +68,6 @@ void vm_events_fold_cpu(int cpu)
                fold_state->event[i] = 0;
        }
 }
-#endif /* CONFIG_HOTPLUG */
 
 #endif /* CONFIG_VM_EVENT_COUNTERS */