mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-21 16:31:14 +02:00

Add TEST_F_EXACT flag, which specifies that tests should run memblock_alloc_exact_nid_raw(). Introduce range tests for memblock_alloc_exact_nid_raw() by using the TEST_F_EXACT flag to run the range tests in alloc_nid_api.c, since memblock_alloc_exact_nid_raw() and memblock_alloc_try_nid_raw() behave the same way when nid = NUMA_NO_NODE. Rename tests and other functions in alloc_nid_api.c by removing "_try". Since the test names will be displayed in verbose output, they need to be general enough to refer to any of the memblock functions that the tests may run. Acked-by: David Hildenbrand <david@redhat.com> Signed-off-by: Rebecca Mckeever <remckee0@gmail.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/5a4b6d1b6130ab7375314e1c45a6d5813dfdabbd.1667802195.git.remckee0@gmail.com
27 lines
498 B
C
27 lines
498 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _MEMBLOCK_ALLOC_NID_H
|
|
#define _MEMBLOCK_ALLOC_NID_H
|
|
|
|
#include "common.h"
|
|
|
|
int memblock_alloc_nid_checks(void);
|
|
int memblock_alloc_exact_nid_range_checks(void);
|
|
int __memblock_alloc_nid_numa_checks(void);
|
|
|
|
#ifdef CONFIG_NUMA
|
|
static inline int memblock_alloc_nid_numa_checks(void)
|
|
{
|
|
__memblock_alloc_nid_numa_checks();
|
|
return 0;
|
|
}
|
|
|
|
#else
|
|
static inline int memblock_alloc_nid_numa_checks(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* CONFIG_NUMA */
|
|
|
|
#endif
|