Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2006 07:20:51 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 104458 for review
Message-ID:  <200608180720.k7I7Kpuc059007@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104458

Change 104458 by rdivacky@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608180720.k7I7Kpuc059007>