Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2012 16:57:18 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230139 - head/sys/powerpc/ps3
Message-ID:  <201201151657.q0FGvIh1091657@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sun Jan 15 16:57:18 2012
New Revision: 230139
URL: http://svn.freebsd.org/changeset/base/230139

Log:
  Now that we can tolerate LPAR context switches on the PS3 hypervisor, going
  to hypervisor-idle on both threads will not hang the kernel.

Modified:
  head/sys/powerpc/ps3/platform_ps3.c

Modified: head/sys/powerpc/ps3/platform_ps3.c
==============================================================================
--- head/sys/powerpc/ps3/platform_ps3.c	Sun Jan 15 14:03:05 2012	(r230138)
+++ head/sys/powerpc/ps3/platform_ps3.c	Sun Jan 15 16:57:18 2012	(r230139)
@@ -247,16 +247,6 @@ ps3_real_maxaddr(platform_t plat)
 static void
 ps3_cpu_idle(void)
 {
-	static volatile int pausing = 0;
-
-	/*
-	 * XXX: It appears that the PS3 can livelock if both threads
-	 * call lv1_pause(0) simultaneously.
-	 */
-	if (!atomic_cmpset_int(&pausing, 0, 1))
-		return;
-
 	lv1_pause(0);
-	pausing = 0;
 }
 



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