memblock: exclude MEMBLOCK_NOMAP regions from kmemleak
[linux-2.6-microblaze.git] / drivers / acpi / tables.c
index f938373..71419eb 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/earlycpio.h>
 #include <linux/initrd.h>
 #include <linux/security.h>
+#include <linux/kmemleak.h>
 #include "internal.h"
 
 #ifdef CONFIG_ACPI_CUSTOM_DSDT
@@ -601,6 +602,8 @@ void __init acpi_table_upgrade(void)
         */
        arch_reserve_mem_area(acpi_tables_addr, all_tables_size);
 
+       kmemleak_ignore_phys(acpi_tables_addr);
+
        /*
         * early_ioremap only can remap 256k one time. If we map all
         * tables one time, we will hit the limit. Need to map chunks