PERFORCE change 104458 for review

Roman Divacky rdivacky at FreeBSD.org
Fri Aug 18 07:20:52 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=104458

Change 104458 by rdivacky at rdivacky_witten on 2006/08/18 07:20:27

	Dont wake with 0 retries, linux uses very strange code here which confused me
	use very_big_number (tm).

Affected files ...

.. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#29 edit

Differences ...

==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#29 (text+ko) ====

@@ -304,8 +304,8 @@
 		if (op_ret > 0) {
 		   	printf("second wakeup\n");
 		   	op_ret = 0;
-		   	/* Linux always puts there 0 retries */
-   		   	op_ret += futex_wake(f2, 0, NULL);
+		   	/* Linux always puts there struct timespec *utime :) */
+   		   	op_ret += futex_wake(f2, 0x7fffffff, NULL);
 			ret += op_ret;
 		}
 		futex_put(f2);


More information about the p4-projects mailing list