hv: retain the timer irq

Timer IRQ was static mapped IRQ.
It should not be cleaned up when one of the cpu dead.
The patch will retain the timer irq.

Tracked-On: #1359
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Wei Liu 2018-09-07 15:50:41 +08:00 committed by Xie, Nanlin
parent 07e71212cc
commit 67ff326e14
3 changed files with 0 additions and 11 deletions

View File

@ -701,7 +701,6 @@ void cpu_dead(uint16_t pcpu_id)
} }
/* clean up native stuff */ /* clean up native stuff */
timer_cleanup();
vmx_off(pcpu_id); vmx_off(pcpu_id);
cache_flush_invalidate_all(); cache_flush_invalidate_all();

View File

@ -188,15 +188,6 @@ void timer_init(void)
init_tsc_deadline_timer(); init_tsc_deadline_timer();
} }
void timer_cleanup(void)
{
uint16_t pcpu_id = get_cpu_id();
if (pcpu_id == BOOT_CPU_ID) {
free_irq(TIMER_IRQ);
}
}
void check_tsc(void) void check_tsc(void)
{ {
uint64_t temp64; uint64_t temp64;

View File

@ -60,7 +60,6 @@ int add_timer(struct hv_timer *timer);
void del_timer(struct hv_timer *timer); void del_timer(struct hv_timer *timer);
void timer_init(void); void timer_init(void);
void timer_cleanup(void);
void check_tsc(void); void check_tsc(void);
void calibrate_tsc(void); void calibrate_tsc(void);