aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/tables.c
diff options
context:
space:
mode:
authorAleksey Makarov <aleksey.makarov@linaro.org>2016-06-20 06:56:11 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-21 19:16:14 -0400
commit84b06ca319dae15f40fd7ff2bfff4769ab8cc58d (patch)
tree025ddd680f8d8ab9689bf773531af097d04a1460 /drivers/acpi/tables.c
parentda3d3f98d28bc071a2d566aefc8c461bd564be35 (diff)
ACPI / tables: move arch-specific symbol to asm/acpi.h
The constant that defines max phys address where the new upgraded ACPI table should be allocated is arch-specific. Move it to <asm/acpi.h> Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/tables.c')
-rw-r--r--drivers/acpi/tables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
index b05df13bd79f..9f0ad6ebb368 100644
--- a/drivers/acpi/tables.c
+++ b/drivers/acpi/tables.c
@@ -35,6 +35,7 @@
35#include <linux/earlycpio.h> 35#include <linux/earlycpio.h>
36#include <linux/memblock.h> 36#include <linux/memblock.h>
37#include <linux/initrd.h> 37#include <linux/initrd.h>
38#include <linux/acpi.h>
38#include "internal.h" 39#include "internal.h"
39 40
40#ifdef CONFIG_ACPI_CUSTOM_DSDT 41#ifdef CONFIG_ACPI_CUSTOM_DSDT
@@ -543,7 +544,7 @@ void __init acpi_table_upgrade(void)
543 return; 544 return;
544 545
545 acpi_tables_addr = 546 acpi_tables_addr =
546 memblock_find_in_range(0, max_low_pfn_mapped << PAGE_SHIFT, 547 memblock_find_in_range(0, ACPI_TABLE_UPGRADE_MAX_PHYS,
547 all_tables_size, PAGE_SIZE); 548 all_tables_size, PAGE_SIZE);
548 if (!acpi_tables_addr) { 549 if (!acpi_tables_addr) {
549 WARN_ON(1); 550 WARN_ON(1);