patch-2.4.9 linux/kernel/exit.c
Next file: linux/kernel/ksyms.c
Previous file: linux/ipc/util.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Sun Aug 12 10:52:29 2001
- Orig file:
v2.4.8/linux/kernel/exit.c
- Orig date:
Fri May 4 14:44:06 2001
diff -u --recursive --new-file v2.4.8/linux/kernel/exit.c linux/kernel/exit.c
@@ -9,6 +9,7 @@
#include <linux/interrupt.h>
#include <linux/smp_lock.h>
#include <linux/module.h>
+#include <linux/completion.h>
#include <linux/tty.h>
#ifdef CONFIG_BSD_PROCESS_ACCT
#include <linux/acct.h>
@@ -473,10 +474,10 @@
goto fake_volatile;
}
-NORET_TYPE void up_and_exit(struct semaphore *sem, long code)
+NORET_TYPE void complete_and_exit(struct completion *comp, long code)
{
- if (sem)
- up(sem);
+ if (comp)
+ complete(comp);
do_exit(code);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)