From 3f36764fec7b71d60ac178a2efb4063502d8d8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Benedikt=20Kr=C3=BCger?= Date: Tue, 5 Jul 2011 14:48:42 +0200 Subject: [PATCH] benchmark --- drivers/net/mmnif.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 3b4e6f87..c07db0b5 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -78,7 +78,7 @@ extern HANDLE hProc; /* decide whether it's polling mode or not */ -static int no_irq = 1; +static int no_irq = 0; /* this will be set by open() and close() and shows wether the driver is running or not */ @@ -1197,8 +1197,7 @@ int mmnif_poll(void* e) { while (!mmnif->rx_buff->queued) { - // mmnif->stats.pll_empty++; - mmnif->stats.pll_empty = 0; + mmnif->stats.pll_empty++; if (mmnif->stats.pll_empty >= MMNIF_POLL_BUDGET) { /* enable interrupts and suspend polling