From 8e0edc1e6d51eeb5a401f686adccefa623332bcd Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Tue, 18 Nov 2014 15:29:12 -0500 Subject: [PATCH 5/5] debug: Remove the --MARK-- code. We could use it to check every 1msec for some case and print data, but we never used it. Signed-off-by: Konrad Rzeszutek Wilk --- xen/drivers/passthrough/io.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/xen/drivers/passthrough/io.c b/xen/drivers/passthrough/io.c index 8a8fc62..aad5607 100644 --- a/xen/drivers/passthrough/io.c +++ b/xen/drivers/passthrough/io.c @@ -1054,18 +1054,6 @@ static struct keyhandler dump_debug_keyhandler = { .u.fn = dump_debug, .desc = "dpci debug stats" }; -static struct timer debug_timer; -static s_time_t last_time = 0; -static unsigned int debug_cnt = 0; - -static void debug_timer_fn(void *d) -{ - if ( ( debug_cnt ++ % 10 ) == 0 ) - printk("--MARK--\n"); - - last_time = NOW(); - set_timer(&debug_timer, last_time + SECONDS(1)); -} static int __init setup_dpci_softirq(void) { @@ -1079,9 +1067,6 @@ static int __init setup_dpci_softirq(void) open_softirq(HVM_DPCI_SOFTIRQ, dpci_softirq); register_cpu_notifier(&cpu_nfb); - init_timer(&debug_timer, debug_timer_fn, NULL, smp_processor_id()); - last_time = NOW(); - set_timer(&debug_timer, NOW() + SECONDS(1)); register_keyhandler('k', &dump_debug_keyhandler); return 0; -- 1.9.3