mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
8df0eb7c9d
In SRAT v1, we had 8bit proximity domain (PXM) fields; SRAT v2 provides 32bits for these. The new fields were reserved before. According to the ACPI spec, the OS must disregrard reserved fields. In order to know whether or not, we must know what version the SRAT table has. This patch stores the SRAT table revision for later consumption by arch specific __init functions. Signed-off-by: Kurt Garloff <kurt@garloff.de> Signed-off-by: Len Brown <len.brown@intel.com>
22 lines
512 B
C
22 lines
512 B
C
#ifndef __ACPI_NUMA_H
|
|
#define __ACPI_NUMA_H
|
|
|
|
#ifdef CONFIG_ACPI_NUMA
|
|
#include <linux/kernel.h>
|
|
|
|
/* Proximity bitmap length */
|
|
#if MAX_NUMNODES > 256
|
|
#define MAX_PXM_DOMAINS MAX_NUMNODES
|
|
#else
|
|
#define MAX_PXM_DOMAINS (256) /* Old pxm spec is defined 8 bit */
|
|
#endif
|
|
|
|
extern int pxm_to_node(int);
|
|
extern int node_to_pxm(int);
|
|
extern void __acpi_map_pxm_to_node(int, int);
|
|
extern int acpi_map_pxm_to_node(int);
|
|
extern unsigned char acpi_srat_revision;
|
|
|
|
#endif /* CONFIG_ACPI_NUMA */
|
|
#endif /* __ACP_NUMA_H */
|