benchmark
This commit is contained in:
parent
4c3fb2c162
commit
3f36764fec
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue