benchmark
This commit is contained in:
parent
1f80ddb613
commit
e989d7f8a8
2 changed files with 4 additions and 3 deletions
|
@ -78,7 +78,7 @@ extern HANDLE hProc;
|
|||
|
||||
/* decide whether it's polling mode or not
|
||||
*/
|
||||
static int no_irq = 0;
|
||||
static int no_irq = 1;
|
||||
|
||||
/* this will be set by open() and close() and shows wether the driver is running or not
|
||||
*/
|
||||
|
@ -1197,7 +1197,8 @@ int mmnif_poll(void* e)
|
|||
{
|
||||
while (!mmnif->rx_buff->queued)
|
||||
{
|
||||
mmnif->stats.pll_empty++;
|
||||
// mmnif->stats.pll_empty++;
|
||||
mmnif->stats.pll_empty = 0;
|
||||
if (mmnif->stats.pll_empty >= MMNIF_POLL_BUDGET)
|
||||
{
|
||||
/* enable interrupts and suspend polling
|
||||
|
|
|
@ -35,7 +35,7 @@ extern "C" {
|
|||
#define PAGE_SHIFT 12
|
||||
#define CACHE_LINE 64
|
||||
#define MAILBOX_SIZE 8
|
||||
#define TIMER_FREQ 1000 /* in HZ */
|
||||
#define TIMER_FREQ 100 /* in HZ */
|
||||
#define CLOCK_TICK_RATE 1193182 /* 8254 chip's internal oscillator frequency */
|
||||
#define INT_SYSCALL 0x80
|
||||
#define KERNEL_SPACE (1*1024*1024*1024)
|
||||
|
|
Loading…
Add table
Reference in a new issue