alloc_exact_nid_api.h 491 B

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