From 77e01d28b0eb46c6a4a5b10b1430082f40912a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Benedikt=20Kr=C3=BCger?= Date: Sat, 9 Jul 2011 09:05:59 +0200 Subject: [PATCH] adding spinlock --- drivers/net/mmnif.c | 4 ++-- include/metalsvm/config.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 5d21a9b6..25589bf2 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -189,8 +189,8 @@ typedef struct mm_rx_buffer uint8_t iv_intr; - sem_t lock; -// spinlock_t lock; +// sem_t lock; + spinlock_t lock; // uint32_t timestamp[MMNIF_RX_QUEUELEN]; // uint32_t bitmap[MMNIF_RX_QUEUELEN]; diff --git a/include/metalsvm/config.h b/include/metalsvm/config.h index 15a222af..f70fdd4c 100644 --- a/include/metalsvm/config.h +++ b/include/metalsvm/config.h @@ -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)