hv: timer: rename functions to follow naming convention

For arch specific codes, we use arch_xxx() to name the function.
So, rename cpu_ticks/cpu_tickrate/set_hw_timeout/init_hw_timer
to follow this convention. Then, use arch interface to set timeout
value in update_physical_timer().

Furthermore, remove hw_timer.h and move its contents into common/
timer.h.

Tracked-On: #8792
Signed-off-by: Yi Y Sun <yi.y.sun@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Yi Y Sun
2025-09-02 14:25:14 +08:00
committed by acrnsi-robot
parent d074ce85eb
commit aa3febbe26
8 changed files with 43 additions and 35 deletions

View File

@@ -119,6 +119,18 @@ void del_timer(struct hv_timer *timer);
*/
void timer_init(void);
/**
* @brief Set timeout value to arch specific timer.
*
* @param[in] cnt Timeout value to set.
*/
void arch_set_timer_count(uint64_t cnt);
/**
* @brief Initialize arch specific timer.
*/
void arch_init_timer(void);
/**
* @}
*/