Skip to content

Commit 9dbcf7a

Browse files
mgcaojren1
authored andcommitted
remove deadcode of timer
the code is used to debug before, not used now. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 8a8b1a4 commit 9dbcf7a

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

hypervisor/arch/x86/timer.c

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -438,41 +438,6 @@ bool cancel_timer(long handle, int cpu_id)
438438
return ret;
439439
}
440440

441-
void dump_timer_pool_info(int cpu_id)
442-
{
443-
struct per_cpu_timers *cpu_timer =
444-
&per_cpu(cpu_timers, cpu_id);
445-
struct list_head *pos;
446-
int cn = 0;
447-
448-
if (cpu_id >= phy_cpu_num)
449-
return;
450-
451-
pr_info("Timer%d statistics: Pending: %d\n\t"
452-
"total_pickup: %lld total_added: %lld total_irq: %lld",
453-
cpu_id,
454-
cpu_timer->stat.pending_cnt,
455-
cpu_timer->stat.total_pickup_cnt,
456-
cpu_timer->stat.total_added_cnt,
457-
cpu_timer->stat.irq_cnt);
458-
459-
pr_info("LAST pickup[%d] time: 0x%llx deadline: 0x%llx",
460-
cpu_timer->stat.last.pickup_id,
461-
cpu_timer->stat.last.pickup_time,
462-
cpu_timer->stat.last.pickup_deadline);
463-
464-
pr_info("LAST added[%d] time: 0x%llx deadline: 0x%llx",
465-
cpu_timer->stat.last.added_id,
466-
cpu_timer->stat.last.added_time,
467-
cpu_timer->stat.last.added_deadline);
468-
469-
list_for_each(pos, &cpu_timer->timer_list) {
470-
cn++;
471-
pr_info("-->pending: %d trigger: 0x%llx", cn,
472-
list_entry(pos, struct timer, node)->deadline);
473-
}
474-
}
475-
476441
void check_tsc(void)
477442
{
478443
uint64_t temp64;

hypervisor/include/arch/x86/timer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ long update_timer(long handle, timer_handle_t func, uint64_t data,
4141
int timer_softirq(int cpu_id);
4242
void timer_init(void);
4343
void timer_cleanup(void);
44-
void dump_timer_pool_info(int cpu_id);
4544
void check_tsc(void);
4645

4746
#endif /* TIMER_H */

0 commit comments

Comments
 (0)