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:
Liang Yi
2021-04-12 13:40:00 +08:00
committed by wenlingz
parent 51204a8d11
commit 3547c9cd23
13 changed files with 83 additions and 41 deletions

View File

@@ -8,7 +8,7 @@
#define SCHEDULE_H
#include <asm/lib/spinlock.h>
#include <lib/list.h>
#include <asm/timer.h>
#include <timer.h>
#define NEED_RESCHEDULE (1U)