You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
555 B

/* 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) { }
static inline void post_page_relinquish_tlb_inv(void) { }
#endif /* CONFIG_MEMORY_RELINQUISH */
#endif /* __MEM_RELINQUISH_H__ */