mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-28 07:45:32 +00:00
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:
@@ -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);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user