2019-11-07 09:43:31 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _MEMREGION_H_
|
|
|
|
#define _MEMREGION_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/errno.h>
|
|
|
|
|
2019-11-07 09:43:43 +08:00
|
|
|
struct memregion_info {
|
|
|
|
int target_node;
|
|
|
|
};
|
|
|
|
|
2019-11-07 09:43:31 +08:00
|
|
|
#ifdef CONFIG_MEMREGION
|
|
|
|
int memregion_alloc(gfp_t gfp);
|
|
|
|
void memregion_free(int id);
|
|
|
|
#else
|
|
|
|
static inline int memregion_alloc(gfp_t gfp)
|
|
|
|
{
|
|
|
|
return -ENOMEM;
|
|
|
|
}
|
|
|
|
void memregion_free(int id)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _MEMREGION_H_ */
|