mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 02:00:27 +00:00
Move shutdown_system to common (and rename to shutdown_host) Move reset_host to common Tracked-On: #8830 Signed-off-by: Yifan Liu <yifan1.liu@intel.com> Reviewed-by: Fei Li <fei1.li@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
26 lines
490 B
C
26 lines
490 B
C
/*
|
|
* Copyright (C) 2018-2025 Intel Corporation.
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef HOST_PM_H
|
|
#define HOST_PM_H
|
|
|
|
#include <asm/host_pm.h>
|
|
#include <logmsg.h>
|
|
|
|
void arch_shutdown_host(void);
|
|
void arch_reset_host(bool warm);
|
|
|
|
static inline void shutdown_host(void) {
|
|
pr_info("Shutting down ACRN");
|
|
arch_shutdown_host();
|
|
}
|
|
|
|
static inline void reset_host(bool warm) {
|
|
pr_info("%s resetting ACRN", warm ? "Warm" : "Cold");
|
|
arch_reset_host(warm);
|
|
}
|
|
|
|
#endif /* HOST_PM_H */
|