Blame view

include/acpi/acpi_numa.h 914 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
762834e8b   Yasunori Goto   [PATCH] Unify pxm...
2
3
4
5
6
  #ifndef __ACPI_NUMA_H
  #define __ACPI_NUMA_H
  
  #ifdef CONFIG_ACPI_NUMA
  #include <linux/kernel.h>
a0c2d9c1d   Ross Zwisler   ACPI: NUMA: add m...
7
  #include <linux/numa.h>
762834e8b   Yasunori Goto   [PATCH] Unify pxm...
8
9
10
11
12
  
  /* Proximity bitmap length */
  #if MAX_NUMNODES > 256
  #define MAX_PXM_DOMAINS MAX_NUMNODES
  #else
fd3509436   Len Brown   ACPICA: Lindent
13
  #define MAX_PXM_DOMAINS (256)	/* Old pxm spec is defined 8 bit */
762834e8b   Yasunori Goto   [PATCH] Unify pxm...
14
  #endif
f363d16fb   Aaron Durbin   acpi: fix potenti...
15
16
  extern int pxm_to_node(int);
  extern int node_to_pxm(int);
8ff6f48d9   Tony Luck   ACPI: Section mis...
17
  extern int acpi_map_pxm_to_node(int);
8df0eb7c9   Kurt Garloff   ACPI: Store SRAT ...
18
  extern unsigned char acpi_srat_revision;
2dd57d341   Dan Williams   x86/numa: cleanup...
19
  extern void disable_srat(void);
e84025e27   David Daney   ACPI / NUMA: move...
20
21
22
  
  extern void bad_srat(void);
  extern int srat_disabled(void);
762834e8b   Yasunori Goto   [PATCH] Unify pxm...
23

2dd57d341   Dan Williams   x86/numa: cleanup...
24
25
26
27
  #else				/* CONFIG_ACPI_NUMA */
  static inline void disable_srat(void)
  {
  }
4849bc777   Nathan Chancellor   ACPI / NUMA: Add ...
28
29
30
31
  static inline int pxm_to_node(int pxm)
  {
  	return 0;
  }
762834e8b   Yasunori Goto   [PATCH] Unify pxm...
32
  #endif				/* CONFIG_ACPI_NUMA */
3b0d31011   Dan Williams   x86/numa: add 'no...
33
34
35
36
37
38
39
40
  
  #ifdef CONFIG_ACPI_HMAT
  extern void disable_hmat(void);
  #else				/* CONFIG_ACPI_HMAT */
  static inline void disable_hmat(void)
  {
  }
  #endif				/* CONFIG_ACPI_HMAT */
762834e8b   Yasunori Goto   [PATCH] Unify pxm...
41
  #endif				/* __ACP_NUMA_H */