numa_mode.h 757 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * NUMA support for s390
  4. *
  5. * Define declarations used for communication between NUMA mode
  6. * implementations and NUMA core functionality.
  7. *
  8. * Copyright IBM Corp. 2015
  9. */
  10. #ifndef __S390_NUMA_MODE_H
  11. #define __S390_NUMA_MODE_H
  12. struct numa_mode {
  13. char *name; /* Name of mode */
  14. void (*setup)(void); /* Initizalize mode */
  15. void (*update_cpu_topology)(void); /* Called by topology code */
  16. int (*__pfn_to_nid)(unsigned long pfn); /* PFN to node ID */
  17. unsigned long (*align)(void); /* Minimum node alignment */
  18. int (*distance)(int a, int b); /* Distance between two nodes */
  19. };
  20. extern const struct numa_mode numa_mode_plain;
  21. extern const struct numa_mode numa_mode_emu;
  22. #endif /* __S390_NUMA_MODE_H */