Files
kernel/include/linux
Andrew Morton f02c696800 include/linux/memory.h: implement register_hotmemory_notifier()
When CONFIG_MEMORY_HOTPLUG=n, we don't want the memory-hotplug notifier
handlers to be included in the .o files, for space reasons.

The existing hotplug_memory_notifier() tries to handle this but testing
with gcc-4.4.4 shows that it doesn't work - the hotplug functions are
still present in the .o files.

So implement a new register_hotmemory_notifier() which is a copy of
register_hotcpu_notifier(), and which actually works as desired.
hotplug_memory_notifier() and register_memory_notifier() callsites
should be converted to use this new register_hotmemory_notifier().

While we're there, let's repair the existing hotplug_memory_notifier():
it simply stomps on the register_memory_notifier() return value, so
well-behaved code cannot check for errors.  Apparently non of the
existing callers were well-behaved :(

Cc: Andrew Shewmaker <agshew@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-04-29 15:54:36 -07:00
..
2013-03-01 13:39:00 -08:00
2013-04-29 15:54:33 -07:00
2013-03-19 19:15:52 +01:00
2013-02-26 02:46:08 -05:00
2013-02-22 23:31:31 -05:00
2013-02-06 15:59:47 -05:00
2013-01-29 13:59:57 -05:00
2013-03-22 16:41:20 -07:00
2013-04-29 15:54:28 -07:00
2013-04-09 14:09:17 -04:00
2013-04-29 15:54:28 -07:00
2013-02-19 08:43:34 +01:00
2013-03-19 19:15:52 +01:00
2013-02-10 19:41:08 -05:00
2013-02-14 09:21:15 -05:00
2013-03-20 12:10:38 -04:00
2013-02-08 18:28:04 +01:00
2013-03-28 11:10:22 -07:00