patch-2.0.19 linux/include/linux/sched.h
Next file: linux/include/linux/smb_fs.h
Previous file: linux/include/linux/pci.h
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Wed Sep 11 14:36:23 1996
- Orig file:
v2.0.18/linux/include/linux/sched.h
- Orig date:
Mon Sep 2 15:18:26 1996
diff -u --recursive --new-file v2.0.18/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -17,7 +17,9 @@
#include <linux/personality.h>
#include <linux/tasks.h>
#include <linux/kernel.h>
+
#include <asm/system.h>
+#include <asm/semaphore.h>
#include <asm/page.h>
#include <linux/smp.h>
@@ -146,6 +148,7 @@
unsigned long def_flags;
struct vm_area_struct * mmap;
struct vm_area_struct * mmap_avl;
+ struct semaphore mmap_sem;
};
#define INIT_MM { \
@@ -157,7 +160,7 @@
0, 0, 0, 0, \
0, 0, 0, \
0, \
- &init_mmap, &init_mmap }
+ &init_mmap, &init_mmap, MUTEX }
struct signal_struct {
int count;
@@ -458,24 +461,6 @@
add_wait_queue(wait_address,&entry->wait);
p->nr++;
}
-
-extern void __down(struct semaphore * sem);
-
-/*
- * These are not yet interrupt-safe
- */
-extern inline void down(struct semaphore * sem)
-{
- if (sem->count <= 0)
- __down(sem);
- sem->count--;
-}
-
-extern inline void up(struct semaphore * sem)
-{
- sem->count++;
- wake_up(&sem->wait);
-}
#define REMOVE_LINKS(p) do { unsigned long flags; \
save_flags(flags) ; cli(); \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov