heuristical polling && interrupts

This commit is contained in:
Carl-Benedikt Krger 2011-06-30 11:29:42 +02:00
parent 76983818f2
commit 3fc8857304

View file

@ -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;
}
}