2002-07-25 20:23:51

by Jerry Cooperstein

[permalink] [raw]
Subject: Trivial Patch to sched.h for wake_up_interruptible_sync_nr

Hi:

This is gone in 2.5, but it is not right for 2.4.
No one seems to use it, but suppose someone does.

--- linux-2.4.19-rc3/include/linux/sched.h Mon Jul 22 08:04:48 2002
+++ sched.h Thu Jul 25 13:10:45 2002
@@ -611,7 +611,7 @@
#define wake_up_interruptible_nr(x, nr) __wake_up((x),TASK_INTERRUPTIBLE, nr)
#define wake_up_interruptible_all(x) __wake_up((x),TASK_INTERRUPTIBLE, 0)
#define wake_up_interruptible_sync(x) __wake_up_sync((x),TASK_INTERRUPTIBLE, 1)
-#define wake_up_interruptible_sync_nr(x) __wake_up_sync((x),TASK_INTERRUPTIBLE, nr)
+#define wake_up_interruptible_sync_nr(x, nr) __wake_up_sync((x),TASK_INTERRUPTIBLE, nr)
asmlinkage long sys_wait4(pid_t pid,unsigned int * stat_addr, int options, struct rusage * ru);

extern int in_group_p(gid_t);


======================================================================
Jerry Cooperstein, <[email protected]>
Axian, Inc. Software Consulting and Training
Beaverton, OR 97005 USA
http://www.axian.com/
======================================================================