mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 03:36:48 +07:00
19 lines
289 B
C
19 lines
289 B
C
|
#ifndef _ASM_MAX_NUMNODES_H
|
||
|
#define _ASM_MAX_NUMNODES_H
|
||
|
|
||
|
#include <linux/config.h>
|
||
|
|
||
|
#ifdef CONFIG_X86_NUMAQ
|
||
|
|
||
|
/* Max 16 Nodes */
|
||
|
#define NODES_SHIFT 4
|
||
|
|
||
|
#elif defined(CONFIG_ACPI_SRAT)
|
||
|
|
||
|
/* Max 8 Nodes */
|
||
|
#define NODES_SHIFT 3
|
||
|
|
||
|
#endif /* CONFIG_X86_NUMAQ */
|
||
|
|
||
|
#endif /* _ASM_MAX_NUMNODES_H */
|