numa_mode.h 718 B

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