mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
hv: fixed compiling warning
removed some unnecessary variables and functions. v1-->v2: Replace div-by-zero with an inline ASM code Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -194,7 +194,8 @@ void timer_init(void)
|
||||
if (pcpu_id == BOOT_CPU_ID) {
|
||||
register_softirq(SOFTIRQ_TIMER, timer_softirq);
|
||||
|
||||
if (request_timer_irq(tsc_deadline_handler, name) < 0) {
|
||||
if (request_timer_irq((irq_action_t)tsc_deadline_handler, name)
|
||||
< 0) {
|
||||
pr_err("Timer setup failed");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user