mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 08:04:58 +07:00
24 lines
673 B
C
24 lines
673 B
C
|
/*
|
||
|
* NUMA support for s390
|
||
|
*
|
||
|
* Define declarations used for communication between NUMA mode
|
||
|
* implementations and NUMA core functionality.
|
||
|
*
|
||
|
* Copyright IBM Corp. 2015
|
||
|
*/
|
||
|
#ifndef __S390_NUMA_MODE_H
|
||
|
#define __S390_NUMA_MODE_H
|
||
|
|
||
|
struct numa_mode {
|
||
|
char *name; /* Name of mode */
|
||
|
void (*setup)(void); /* Initizalize mode */
|
||
|
void (*update_cpu_topology)(void); /* Called by topology code */
|
||
|
int (*__pfn_to_nid)(unsigned long pfn); /* PFN to node ID */
|
||
|
unsigned long (*align)(void); /* Minimum node alignment */
|
||
|
int (*distance)(int a, int b); /* Distance between two nodes */
|
||
|
};
|
||
|
|
||
|
extern const struct numa_mode numa_mode_plain;
|
||
|
|
||
|
#endif /* __S390_NUMA_MODE_H */
|