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:
Mingqiang Chi
2018-08-16 10:31:56 +08:00
committed by lijinxia
parent 40745d90c5
commit bdcc3aef22
12 changed files with 13 additions and 72 deletions

View File

@@ -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;
}