Skip to content

Commit

Permalink
remove deadcode of timer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mgcao authored and jren1 committed May 15, 2018
1 parent 8a8b1a4 commit 9dbcf7a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
35 changes: 0 additions & 35 deletions hypervisor/arch/x86/timer.c
Expand Up @@ -438,41 +438,6 @@ bool cancel_timer(long handle, int cpu_id)
return ret;
}

void dump_timer_pool_info(int cpu_id)
{
struct per_cpu_timers *cpu_timer =
&per_cpu(cpu_timers, cpu_id);
struct list_head *pos;
int cn = 0;

if (cpu_id >= phy_cpu_num)
return;

pr_info("Timer%d statistics: Pending: %d\n\t"
"total_pickup: %lld total_added: %lld total_irq: %lld",
cpu_id,
cpu_timer->stat.pending_cnt,
cpu_timer->stat.total_pickup_cnt,
cpu_timer->stat.total_added_cnt,
cpu_timer->stat.irq_cnt);

pr_info("LAST pickup[%d] time: 0x%llx deadline: 0x%llx",
cpu_timer->stat.last.pickup_id,
cpu_timer->stat.last.pickup_time,
cpu_timer->stat.last.pickup_deadline);

pr_info("LAST added[%d] time: 0x%llx deadline: 0x%llx",
cpu_timer->stat.last.added_id,
cpu_timer->stat.last.added_time,
cpu_timer->stat.last.added_deadline);

list_for_each(pos, &cpu_timer->timer_list) {
cn++;
pr_info("-->pending: %d trigger: 0x%llx", cn,
list_entry(pos, struct timer, node)->deadline);
}
}

void check_tsc(void)
{
uint64_t temp64;
Expand Down
1 change: 0 additions & 1 deletion hypervisor/include/arch/x86/timer.h
Expand Up @@ -41,7 +41,6 @@ long update_timer(long handle, timer_handle_t func, uint64_t data,
int timer_softirq(int cpu_id);
void timer_init(void);
void timer_cleanup(void);
void dump_timer_pool_info(int cpu_id);
void check_tsc(void);

#endif /* TIMER_H */

0 comments on commit 9dbcf7a

Please sign in to comment.