[PATCH] naming memory hotplug's phys_device take2 [3/3] name memoryat boot

From: KAMEZAWA Hiroyuki
Date: Tue Mar 07 2006 - 02:01:24 EST


This patch shows ACPI information of rams which exists at boot time,
maybe will not be used until memory-hot-remove will be implemented.

Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

Index: linux-2.6.16-rc5-mm2/drivers/acpi/acpi_memhotplug.c
===================================================================
--- linux-2.6.16-rc5-mm2.orig/drivers/acpi/acpi_memhotplug.c 2006-03-07 15:28:08.000000000 +0900
+++ linux-2.6.16-rc5-mm2/drivers/acpi/acpi_memhotplug.c 2006-03-07 15:28:10.000000000 +0900
@@ -387,6 +387,10 @@

printk(KERN_INFO "%s \n", acpi_device_name(device));

+ /* if memory is available now (we have page memmap), name it */
+ if ( pfn_valid(mem_device->start_addr >> PAGE_SHIFT)) {
+ acpi_memory_device_export_name(mem_device);
+ }
return_VALUE(result);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/