linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 019/493] mm: remove CONFIG_HOTPLUG ifdefs
       [not found] <1353349642-3677-1-git-send-email-wfp5p@virginia.edu>
@ 2012-11-19 18:19 ` Bill Pemberton
  2012-11-19 18:23 ` [PATCH 265/493] mm/vmscan.c: remove use of __devinit Bill Pemberton
  1 sibling, 0 replies; 2+ messages in thread
From: Bill Pemberton @ 2012-11-19 18:19 UTC (permalink / raw)
  To: gregkh; +Cc: linux-mm

Remove conditional code based on CONFIG_HOTPLUG being false.  It's
always on now in preparation of it going away as an option.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: linux-mm@kvack.org 
---
 include/linux/vmstat.h | 6 ------
 mm/vmstat.c            | 2 --
 2 files changed, 8 deletions(-)

diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
index 92a86b2..d472dd8 100644
--- a/include/linux/vmstat.h
+++ b/include/linux/vmstat.h
@@ -48,13 +48,7 @@ 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
 
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 34bf80b..a999171 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -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 */
 
-- 
1.8.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 265/493] mm/vmscan.c: remove use of __devinit
       [not found] <1353349642-3677-1-git-send-email-wfp5p@virginia.edu>
  2012-11-19 18:19 ` [PATCH 019/493] mm: remove CONFIG_HOTPLUG ifdefs Bill Pemberton
@ 2012-11-19 18:23 ` Bill Pemberton
  1 sibling, 0 replies; 2+ messages in thread
From: Bill Pemberton @ 2012-11-19 18:23 UTC (permalink / raw)
  To: gregkh; +Cc: linux-mm

CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: linux-mm@kvack.org 
---
 mm/vmscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 9ca84e2..2a6a9ae 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -3117,7 +3117,7 @@ unsigned long shrink_all_memory(unsigned long nr_to_reclaim)
    not required for correctness.  So if the last cpu in a node goes
    away, we get changed to run anywhere: as the first one comes back,
    restore their cpu bindings. */
-static int __devinit cpu_callback(struct notifier_block *nfb,
+static int cpu_callback(struct notifier_block *nfb,
 				  unsigned long action, void *hcpu)
 {
 	int nid;
-- 
1.8.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-19 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1353349642-3677-1-git-send-email-wfp5p@virginia.edu>
2012-11-19 18:19 ` [PATCH 019/493] mm: remove CONFIG_HOTPLUG ifdefs Bill Pemberton
2012-11-19 18:23 ` [PATCH 265/493] mm/vmscan.c: remove use of __devinit Bill Pemberton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox