aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index d3bc25e6d27d..88b5dfd8ee12 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -25,7 +25,6 @@
25#ifndef _LINUX_ACPI_H 25#ifndef _LINUX_ACPI_H
26#define _LINUX_ACPI_H 26#define _LINUX_ACPI_H
27 27
28#include <linux/config.h>
29 28
30#ifdef CONFIG_ACPI 29#ifdef CONFIG_ACPI
31 30
@@ -38,6 +37,7 @@
38#include <acpi/acpi.h> 37#include <acpi/acpi.h>
39#include <acpi/acpi_bus.h> 38#include <acpi/acpi_bus.h>
40#include <acpi/acpi_drivers.h> 39#include <acpi/acpi_drivers.h>
40#include <acpi/acpi_numa.h>
41#include <asm/acpi.h> 41#include <asm/acpi.h>
42 42
43 43
@@ -408,10 +408,18 @@ void acpi_table_print_madt_entry (acpi_table_entry_header *madt);
408void acpi_table_print_srat_entry (acpi_table_entry_header *srat); 408void acpi_table_print_srat_entry (acpi_table_entry_header *srat);
409 409
410/* the following four functions are architecture-dependent */ 410/* the following four functions are architecture-dependent */
411#ifdef CONFIG_HAVE_ARCH_PARSE_SRAT
412#define NR_NODE_MEMBLKS MAX_NUMNODES
413#define acpi_numa_slit_init(slit) do {} while (0)
414#define acpi_numa_processor_affinity_init(pa) do {} while (0)
415#define acpi_numa_memory_affinity_init(ma) do {} while (0)
416#define acpi_numa_arch_fixup() do {} while (0)
417#else
411void acpi_numa_slit_init (struct acpi_table_slit *slit); 418void acpi_numa_slit_init (struct acpi_table_slit *slit);
412void acpi_numa_processor_affinity_init (struct acpi_table_processor_affinity *pa); 419void acpi_numa_processor_affinity_init (struct acpi_table_processor_affinity *pa);
413void acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma); 420void acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma);
414void acpi_numa_arch_fixup(void); 421void acpi_numa_arch_fixup(void);
422#endif
415 423
416#ifdef CONFIG_ACPI_HOTPLUG_CPU 424#ifdef CONFIG_ACPI_HOTPLUG_CPU
417/* Arch dependent functions for cpu hotplug support */ 425/* Arch dependent functions for cpu hotplug support */
@@ -520,12 +528,18 @@ static inline void acpi_set_cstate_limit(unsigned int new_limit) { return; }
520 528
521#ifdef CONFIG_ACPI_NUMA 529#ifdef CONFIG_ACPI_NUMA
522int acpi_get_pxm(acpi_handle handle); 530int acpi_get_pxm(acpi_handle handle);
531int acpi_get_node(acpi_handle *handle);
523#else 532#else
524static inline int acpi_get_pxm(acpi_handle handle) 533static inline int acpi_get_pxm(acpi_handle handle)
525{ 534{
526 return 0; 535 return 0;
527} 536}
537static inline int acpi_get_node(acpi_handle *handle)
538{
539 return 0;
540}
528#endif 541#endif
542extern int acpi_paddr_to_node(u64 start_addr, u64 size);
529 543
530extern int pnpacpi_disabled; 544extern int pnpacpi_disabled;
531 545