diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-15 16:57:18 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-15 16:57:18 +0000 |
commit | 64487bd46e9a13c92b5c0162174c9e9b623cb8f0 (patch) | |
tree | ebf19f01c82644f0025c44f6f65c5e02b5503934 /sys/powerpc/ps3 | |
parent | bddf5b6a0875bc9d9cdd6f31ffba1a57cf1a247b (diff) | |
download | FreeBSD-src-64487bd46e9a13c92b5c0162174c9e9b623cb8f0.zip FreeBSD-src-64487bd46e9a13c92b5c0162174c9e9b623cb8f0.tar.gz |
Now that we can tolerate LPAR context switches on the PS3 hypervisor, going
to hypervisor-idle on both threads will not hang the kernel.
Diffstat (limited to 'sys/powerpc/ps3')
-rw-r--r-- | sys/powerpc/ps3/platform_ps3.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/powerpc/ps3/platform_ps3.c b/sys/powerpc/ps3/platform_ps3.c index cb22cc3..f06c2cf 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; } |