heuristical polling && interrupts
This commit is contained in:
parent
76983818f2
commit
3fc8857304
1 changed files with 6 additions and 9 deletions
|
@ -1094,9 +1094,9 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget)
|
|||
mmnif_lock_rx_hdr(own_ip_address && 0xff);
|
||||
mmnif->rx_buff->iv_intr = FALSE;
|
||||
mmnif_unlock_rx_hdr(own_ip_address && 0xff);
|
||||
|
||||
DEBUGPRINTF("\nPOLLING ENABLED\n");
|
||||
|
||||
#ifdef DEBUG_MMNIF
|
||||
DEBUGPRINTF("mmnif_wait(): heuristical polling enables\n");
|
||||
#endif
|
||||
sem_post(&mmnif->com_poll);
|
||||
mmnif->stats.bdg_overflow = 0;
|
||||
}
|
||||
|
@ -1192,16 +1192,13 @@ int mmnif_poll(void* e)
|
|||
/* enable interrupts and suspend polling
|
||||
*
|
||||
*/
|
||||
// sem_wait(&mmnif->com_poll);
|
||||
|
||||
mmnif_lock_rx_hdr(own_ip_address && 0xff);
|
||||
mmnif->rx_buff->iv_intr = TRUE;
|
||||
mmnif_unlock_rx_hdr(own_ip_address && 0xff);
|
||||
|
||||
DEBUGPRINTF("\nINTERRUPTS ENABLED\n");
|
||||
|
||||
#ifdef DEBUG_MMNIF
|
||||
DEBUGPRINTF("mmnif_poll(): heuristical interrupts enabled\n");
|
||||
#endif
|
||||
sem_wait(&mmnif->com_poll);
|
||||
|
||||
mmnif->stats.pll_empty = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue