[POWERPC] Hotplug memory remove notifications for powerpc
authorBadari Pulavarty <pbadari@us.ibm.com>
Fri, 18 Apr 2008 20:33:50 +0000 (13:33 -0700)
committerPaul Mackerras <paulus@samba.org>
Tue, 29 Apr 2008 05:57:52 +0000 (15:57 +1000)
commit57b539269e9eef4dedc533d83c94877bc6b4d44d
tree72f481d053215d88ee5156524bf173f5cf11b9ec
parent80ff974dba8cc432ab81676fc09d3c357cb11276
[POWERPC] Hotplug memory remove notifications for powerpc

Hotplug memory remove notifier for 64-bit powerpc.  This gets invoked
by writing to /proc/ppc64/ofdt the string "remove_node " followed by
the firmware device tree pathname of the node that needs to be removed.

In response, this adjusts the sections and removes sysfs entries by
calling __remove_pages().  Then it calls arch-specific code to get rid
of the hardware MMU mappings for the section of memory.

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Reviewed-by: Michael Ellerman <michael@ellerman.id.au>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/hotplug-memory.c [new file with mode: 0644]