summaryrefslogtreecommitdiff
path: root/tools/testing/memblock/tests/alloc_exact_nid_api.c
blob: 6406496623a0116d53cb2ee0fb62ee7d45695bfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: GPL-2.0-or-later
#include "alloc_exact_nid_api.h"
#include "alloc_nid_api.h"

#define FUNC_NAME			"memblock_alloc_exact_nid_raw"

int memblock_alloc_exact_nid_checks(void)
{
	prefix_reset();
	prefix_push(FUNC_NAME);

	reset_memblock_attributes();
	dummy_physical_memory_init();

	memblock_alloc_exact_nid_range_checks();

	dummy_physical_memory_cleanup();

	prefix_pop();

	return 0;
}