numa_64.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _ASM_X86_NUMA_64_H
  2. #define _ASM_X86_NUMA_64_H
  3. #include <linux/nodemask.h>
  4. struct bootnode {
  5. u64 start;
  6. u64 end;
  7. };
  8. #define ZONE_ALIGN (1UL << (MAX_ORDER+PAGE_SHIFT))
  9. extern int numa_off;
  10. extern unsigned long numa_free_all_bootmem(void);
  11. extern void setup_node_bootmem(int nodeid, unsigned long start,
  12. unsigned long end);
  13. #ifdef CONFIG_NUMA
  14. /*
  15. * Too small node sizes may confuse the VM badly. Usually they
  16. * result from BIOS bugs. So dont recognize nodes as standalone
  17. * NUMA entities that have less than this amount of RAM listed:
  18. */
  19. #define NODE_MIN_SIZE (4*1024*1024)
  20. extern nodemask_t numa_nodes_parsed __initdata;
  21. extern int __cpuinit numa_cpu_node(int cpu);
  22. extern int __init numa_add_memblk(int nodeid, u64 start, u64 end);
  23. extern void __init numa_set_distance(int from, int to, int distance);
  24. #ifdef CONFIG_NUMA_EMU
  25. #define FAKE_NODE_MIN_SIZE ((u64)32 << 20)
  26. #define FAKE_NODE_MIN_HASH_MASK (~(FAKE_NODE_MIN_SIZE - 1UL))
  27. void numa_emu_cmdline(char *);
  28. #endif /* CONFIG_NUMA_EMU */
  29. #else
  30. static inline int numa_cpu_node(int cpu) { return NUMA_NO_NODE; }
  31. #endif
  32. #endif /* _ASM_X86_NUMA_64_H */