mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
hv/mod_timer: make timer into an arch-independent module
x86/timer.[ch] was moved to the common directory largely unchanged. x86 specific code now resides in x86/tsc_deadline_timer.c and its interface was defined in hw/hw_timer.h. The interface defines two functions: init_hw_timer() and set_hw_timeout() that provides HW specific initialization and timer interrupt source. Other than these two functions, the timer module is largely arch agnostic. Tracked-On: #5920 Signed-off-by: Rong Liu <rong2.liu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -220,7 +220,7 @@ HW_C_SRCS += arch/x86/nmi.c
|
||||
HW_C_SRCS += arch/x86/exception.c
|
||||
HW_C_SRCS += arch/x86/irq.c
|
||||
HW_C_SRCS += arch/x86/tsc.c
|
||||
HW_C_SRCS += arch/x86/timer.c
|
||||
HW_C_SRCS += arch/x86/tsc_deadline_timer.c
|
||||
HW_C_SRCS += arch/x86/vmx.c
|
||||
HW_C_SRCS += arch/x86/cpu_state_tbl.c
|
||||
HW_C_SRCS += arch/x86/pm.c
|
||||
@@ -231,6 +231,7 @@ HW_C_SRCS += arch/x86/rdt.c
|
||||
HW_C_SRCS += arch/x86/sgx.c
|
||||
HW_C_SRCS += common/ticks.c
|
||||
HW_C_SRCS += common/delay.c
|
||||
HW_C_SRCS += common/timer.c
|
||||
HW_C_SRCS += common/irq.c
|
||||
HW_C_SRCS += common/softirq.c
|
||||
HW_C_SRCS += common/schedule.c
|
||||
|
Reference in New Issue
Block a user