alloc_nid_api.h 498 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. #ifndef _MEMBLOCK_ALLOC_NID_H
  3. #define _MEMBLOCK_ALLOC_NID_H
  4. #include "common.h"
  5. int memblock_alloc_nid_checks(void);
  6. int memblock_alloc_exact_nid_range_checks(void);
  7. int __memblock_alloc_nid_numa_checks(void);
  8. #ifdef CONFIG_NUMA
  9. static inline int memblock_alloc_nid_numa_checks(void)
  10. {
  11. __memblock_alloc_nid_numa_checks();
  12. return 0;
  13. }
  14. #else
  15. static inline int memblock_alloc_nid_numa_checks(void)
  16. {
  17. return 0;
  18. }
  19. #endif /* CONFIG_NUMA */
  20. #endif