mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
hv: timer: pass timer callback function parameter by pointer
Signed-off-by: Li, Fei1 <fei1.li@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -31,11 +31,11 @@
|
||||
#ifndef TIMER_H
|
||||
#define TIMER_H
|
||||
|
||||
typedef int (*timer_handle_t)(uint64_t);
|
||||
typedef int (*timer_handle_t)(void *);
|
||||
|
||||
long add_timer(timer_handle_t func, uint64_t data, uint64_t deadline);
|
||||
long add_timer(timer_handle_t func, void *data, uint64_t deadline);
|
||||
bool cancel_timer(long handle, int pcpu_id);
|
||||
long update_timer(long handle, timer_handle_t func, uint64_t data,
|
||||
long update_timer(long handle, timer_handle_t func, void *data,
|
||||
uint64_t deadline);
|
||||
|
||||
int timer_softirq(int pcpu_id);
|
||||
|
Reference in New Issue
Block a user