mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/i386: Remove unuseful kvmclock_create() stub
We shouldn't call kvmclock_create() when KVM is not available or disabled: - check for kvm_enabled() before calling it - assert KVM is enabled once called Since the call is elided when KVM is not available, we can remove the stub (it is never compiled). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230620083228.88796-2-philmd@linaro.org>
This commit is contained in:
parent
f8324611c1
commit
b797c98de4
5 changed files with 10 additions and 14 deletions
|
@ -13,16 +13,6 @@
|
|||
#ifndef HW_KVM_CLOCK_H
|
||||
#define HW_KVM_CLOCK_H
|
||||
|
||||
#ifdef CONFIG_KVM
|
||||
|
||||
void kvmclock_create(bool create_always);
|
||||
|
||||
#else /* CONFIG_KVM */
|
||||
|
||||
static inline void kvmclock_create(bool create_always)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* !CONFIG_KVM */
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue