From 6e3a3fe3774c3038cda6ce66ebf0767acbe3cc00 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Sun, 15 Jan 2012 16:57:18 +0000 Subject: [PATCH] Now that we can tolerate LPAR context switches on the PS3 hypervisor, going to hypervisor-idle on both threads will not hang the kernel. --- sys/powerpc/ps3/platform_ps3.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sys/powerpc/ps3/platform_ps3.c b/sys/powerpc/ps3/platform_ps3.c index cb22cc3d7d5c..f06c2cfc7eab 100644 --- a/sys/powerpc/ps3/platform_ps3.c +++ b/sys/powerpc/ps3/platform_ps3.c @@ -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; }