/* SPDX-License-Identifier: GPL-2.0-only */ /* * X86 specific ACPICA environments and implementation * * Copyright (C) 2014, Intel Corporation * Author: Lv Zheng <lv.zheng@intel.com>
*/
#ifndef _ASM_X86_ACENV_H #define _ASM_X86_ACENV_H
#include <asm/special_insns.h>
/* Asm macros */
/* * ACPI_FLUSH_CPU_CACHE() flushes caches on entering sleep states. * It is required to prevent data loss. * * While running inside virtual machine, the kernel can bypass cache flushing. * Changing sleep state in a virtual machine doesn't affect the host system * sleep state and cannot lead to data loss.
*/ #define ACPI_FLUSH_CPU_CACHE() \ do { \ if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \
wbinvd(); \
} while (0)
int __acpi_acquire_global_lock(unsignedint *lock); int __acpi_release_global_lock(unsignedint *lock);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.