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>
This commit is contained in:
parent
8a8b1a47ba
commit
9dbcf7afaf
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue