Commit f1cb0879 authored by Yijing Wang's avatar Yijing Wang Committed by Linus Torvalds

mm: remove CONFIG_HOTPLUG ifdefs

CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG
ifdefs in mm files.
Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarRik van Riel <riel@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 573b400d
...@@ -48,13 +48,8 @@ static inline void count_vm_events(enum vm_event_item item, long delta) ...@@ -48,13 +48,8 @@ static inline void count_vm_events(enum vm_event_item item, long delta)
} }
extern void all_vm_events(unsigned long *); extern void all_vm_events(unsigned long *);
#ifdef CONFIG_HOTPLUG
extern void vm_events_fold_cpu(int cpu); extern void vm_events_fold_cpu(int cpu);
#else
static inline void vm_events_fold_cpu(int cpu)
{
}
#endif
#else #else
......
...@@ -52,7 +52,6 @@ void all_vm_events(unsigned long *ret) ...@@ -52,7 +52,6 @@ void all_vm_events(unsigned long *ret)
} }
EXPORT_SYMBOL_GPL(all_vm_events); EXPORT_SYMBOL_GPL(all_vm_events);
#ifdef CONFIG_HOTPLUG
/* /*
* Fold the foreign cpu events into our own. * Fold the foreign cpu events into our own.
* *
...@@ -69,7 +68,6 @@ void vm_events_fold_cpu(int cpu) ...@@ -69,7 +68,6 @@ void vm_events_fold_cpu(int cpu)
fold_state->event[i] = 0; fold_state->event[i] = 0;
} }
} }
#endif /* CONFIG_HOTPLUG */
#endif /* CONFIG_VM_EVENT_COUNTERS */ #endif /* CONFIG_VM_EVENT_COUNTERS */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment