HV: remove 'warm_reboot()'function and other minor cleanup
- 'reboot.c' defines 'warm_reboot()' only, and this function is deprecated. - remove the eXecution attribute of 'mttr.h' Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
77011ce60e
commit
c55b696a92
|
@ -149,7 +149,6 @@ C_SRCS += arch/x86/guest/vmsr.c
|
|||
C_SRCS += arch/x86/guest/instr_emul.c
|
||||
C_SRCS += arch/x86/guest/ucode.c
|
||||
C_SRCS += arch/x86/guest/pm.c
|
||||
C_SRCS += arch/x86/debug/reboot.c
|
||||
C_SRCS += lib/spinlock.c
|
||||
C_SRCS += lib/udelay.c
|
||||
C_SRCS += lib/mdelay.c
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) <2018> Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#include <hypervisor.h>
|
||||
#include <reboot.h>
|
||||
|
||||
int warm_reboot(void)
|
||||
{
|
||||
pio_write8(0x6, 0xcf9);
|
||||
return 0;
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) <2018> Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#ifndef REBOOT_H
|
||||
#define REBOOT_H
|
||||
|
||||
int warm_reboot(void);
|
||||
#endif
|
Loading…
Reference in New Issue