diff options
Diffstat (limited to 'arch/arm64/include/asm/acpi.h')
-rw-r--r-- | arch/arm64/include/asm/acpi.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h new file mode 100644 index 000000000000..8b837ab59988 --- /dev/null +++ b/arch/arm64/include/asm/acpi.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2013-2014, Linaro Ltd. | ||
3 | * Author: Al Stone <al.stone@linaro.org> | ||
4 | * Author: Graeme Gregory <graeme.gregory@linaro.org> | ||
5 | * Author: Hanjun Guo <hanjun.guo@linaro.org> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation; | ||
10 | */ | ||
11 | |||
12 | #ifndef _ASM_ACPI_H | ||
13 | #define _ASM_ACPI_H | ||
14 | |||
15 | /* Basic configuration for ACPI */ | ||
16 | #ifdef CONFIG_ACPI | ||
17 | #define acpi_strict 1 /* No out-of-spec workarounds on ARM64 */ | ||
18 | extern int acpi_disabled; | ||
19 | extern int acpi_noirq; | ||
20 | extern int acpi_pci_disabled; | ||
21 | |||
22 | static inline void disable_acpi(void) | ||
23 | { | ||
24 | acpi_disabled = 1; | ||
25 | acpi_pci_disabled = 1; | ||
26 | acpi_noirq = 1; | ||
27 | } | ||
28 | |||
29 | /* | ||
30 | * It's used from ACPI core in kdump to boot UP system with SMP kernel, | ||
31 | * with this check the ACPI core will not override the CPU index | ||
32 | * obtained from GICC with 0 and not print some error message as well. | ||
33 | * Since MADT must provide at least one GICC structure for GIC | ||
34 | * initialization, CPU will be always available in MADT on ARM64. | ||
35 | */ | ||
36 | static inline bool acpi_has_cpu_in_madt(void) | ||
37 | { | ||
38 | return true; | ||
39 | } | ||
40 | |||
41 | static inline void arch_fix_phys_package_id(int num, u32 slot) { } | ||
42 | |||
43 | #endif /* CONFIG_ACPI */ | ||
44 | |||
45 | #endif /*_ASM_ACPI_H*/ | ||