direct-io.hg

changeset 8511:4c2c02ca4a7a

Remove netif_be_dbg debug-key handler from netback by default.
It generally just messes up the formatting of 'q' key output.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Jan 07 18:16:10 2006 +0100 (2006-01-07)
parents 83eeb056f7c2
children b866ed85fad3
files linux-2.6-xen-sparse/drivers/xen/netback/netback.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Sat Jan 07 17:52:43 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Sat Jan 07 18:16:10 2006 +0100
     1.3 @@ -14,6 +14,7 @@
     1.4  #include <asm-xen/balloon.h>
     1.5  #include <asm-xen/xen-public/memory.h>
     1.6  
     1.7 +/*#define NETBE_DEBUG_INTERRUPT*/
     1.8  
     1.9  static void netif_idx_release(u16 pending_idx);
    1.10  static void netif_page_release(struct page *page);
    1.11 @@ -727,6 +728,7 @@ static int make_rx_response(netif_t *net
    1.12  	return notify;
    1.13  }
    1.14  
    1.15 +#ifdef NETBE_DEBUG_INTERRUPT
    1.16  static irqreturn_t netif_be_dbg(int irq, void *dev_id, struct pt_regs *regs)
    1.17  {
    1.18  	struct list_head *ent;
    1.19 @@ -758,6 +760,7 @@ static irqreturn_t netif_be_dbg(int irq,
    1.20  
    1.21  	return IRQ_HANDLED;
    1.22  }
    1.23 +#endif
    1.24  
    1.25  static int __init netback_init(void)
    1.26  {
    1.27 @@ -794,6 +797,7 @@ static int __init netback_init(void)
    1.28  
    1.29  	netif_xenbus_init();
    1.30  
    1.31 +#ifdef NETBE_DEBUG_INTERRUPT
    1.32  	(void)bind_virq_to_irqhandler(
    1.33  		VIRQ_DEBUG,
    1.34  		0,
    1.35 @@ -801,6 +805,7 @@ static int __init netback_init(void)
    1.36  		SA_SHIRQ, 
    1.37  		"net-be-dbg",
    1.38  		&netif_be_dbg);
    1.39 +#endif
    1.40  
    1.41  	return 0;
    1.42  }