Files
kernel_arpi/include/linux/mem_relinquish.h
Keir Fraser b1d965d624 ANDROID: KVM: arm64: Introduce kvm_has_memrelinquish_services
Used to determine whether memrelinquish services have been
initialised.

Bug: 240239989
Change-Id: I81dd23d8122ea54924d52b3fdc1fc4a8cdb28ea5
Signed-off-by: Keir Fraser <keirf@google.com>
2022-11-18 09:06:50 +00:00

22 lines
497 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (C) 2022 Google LLC
* Author: Keir Fraser <keirf@google.com>
*/
#ifndef __MEM_RELINQUISH_H__
#define __MEM_RELINQUISH_H__
#ifdef CONFIG_MEMORY_RELINQUISH
#include <asm/mem_relinquish.h>
#else /* !CONFIG_MEMORY_RELINQUISH */
static inline bool kvm_has_memrelinquish_services(void) { return false; }
static inline void page_relinquish(struct page *page) { }
#endif /* CONFIG_MEMORY_RELINQUISH */
#endif /* __MEM_RELINQUISH_H__ */