patch-1.3.65 linux/kernel/sched.c

Next file: linux/kernel/signal.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.64/linux/kernel/sched.c linux/kernel/sched.c
@@ -361,6 +361,12 @@
 	}
 }
 
+#ifndef __alpha__
+
+/*
+ * For backwards compatibility?  This can be done in libc so Alpha
+ * and all newer ports shouldn't need it.
+ */
 asmlinkage int sys_pause(void)
 {
 	current->state = TASK_INTERRUPTIBLE;
@@ -368,6 +374,8 @@
 	return -ERESTARTNOHAND;
 }
 
+#endif
+
 /*
  * wake_up doesn't wake up stopped processes - they have to be awakened
  * with signals or similar.
@@ -881,6 +889,12 @@
 	sti();
 }
 
+#ifndef __alpha__
+
+/*
+ * For backwards compatibility?  This can be done in libc so Alpha
+ * and all newer ports shouldn't need it.
+ */
 asmlinkage unsigned int sys_alarm(unsigned int seconds)
 {
 	struct itimerval it_new, it_old;
@@ -898,6 +912,10 @@
 	return oldalarm;
 }
 
+/*
+ * The Alpha uses getxpid, getxuid, and getxgid instead.  Maybe this
+ * should be moved into arch/i386 instead?
+ */
 asmlinkage int sys_getpid(void)
 {
 	return current->pid;
@@ -928,6 +946,11 @@
 	return current->egid;
 }
 
+/*
+ * This has been replaced by sys_setpriority.  Maybe it should be
+ * moved into the arch depedent tree for those ports that require
+ * it for backward compatibility?
+ */
 asmlinkage int sys_nice(int increment)
 {
 	unsigned long newprio;
@@ -961,6 +984,8 @@
 	current->priority = newprio;
 	return 0;
 }
+
+#endif
 
 static struct task_struct *find_process_by_pid(pid_t pid) {
 	struct task_struct *p, *q;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this