]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Make walk_memory_resource available with MEMORY_HOTPLUG=n
authorNathan Lynch <ntl@pobox.com>
Tue, 3 Jun 2008 22:30:54 +0000 (08:30 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jun 2008 01:32:41 +0000 (11:32 +1000)
commita2bbf7d10387b9fe6f3165a90a9a2cff49e311ce
treecf61fc411adac7661c7a69ccef1dc6a171cf473e
parent686013da0e1721c543b60747f39d965159bc6ce0
[POWERPC] Make walk_memory_resource available with MEMORY_HOTPLUG=n

The ehea driver was recently changed[1] to use walk_memory_resource() to
detect the system's memory layout.  However, walk_memory_resource() is
available only when memory hotplug is enabled.  So CONFIG_EHEA was
made to depend on MEMORY_HOTPLUG [2], but it is inappropriate for a
network driver to have such a dependency.

Make the declaration of walk_memory_resource() and its powerpc
implementation (ehea is powerpc-specific) unconditionally available.

[1] ae5aaaa42295e8f98f8fce74a5ea16c4e5df114b
    "ehea: Add DLPAR memory remove support"

[2] b4cae1d659245037b6534aa46c18723a595e528c
    "ehea: Add dependency to Kconfig"

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Acked-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/mem.c
include/linux/memory_hotplug.h