patch-2.0.15 linux/kernel/sched.c
Next file: linux/net/ipv4/ip_fw.c
Previous file: linux/include/linux/sched.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Sat Aug 24 10:45:10 1996
- Orig file:
v2.0.14/linux/kernel/sched.c
- Orig date:
Wed Aug 21 09:18:10 1996
diff -u --recursive --new-file v2.0.14/linux/kernel/sched.c linux/kernel/sched.c
@@ -501,11 +501,13 @@
if (current == task[0])
panic("task[0] trying to sleep");
current->state = state;
- add_wait_queue(p, &wait);
save_flags(flags);
+ cli();
+ __add_wait_queue(p, &wait);
sti();
schedule();
- remove_wait_queue(p, &wait);
+ cli();
+ __remove_wait_queue(p, &wait);
restore_flags(flags);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov