[Top] [All Lists]

Re: [PATCH 02/36] Add Cavium OCTEON files to arch/mips/include/asm/mach-

To: Ralf Baechle <>
Subject: Re: [PATCH 02/36] Add Cavium OCTEON files to arch/mips/include/asm/mach-cavium-octeon
From: David Daney <>
Date: Tue, 28 Oct 2008 16:51:34 -0700
Cc:, Tomaso Paoletti <>, Paul Gortmaker <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
User-agent: Thunderbird (X11/20080723)
Ralf Baechle wrote:
On Mon, Oct 27, 2008 at 05:02:34PM -0700, David Daney wrote:

+#ifdef CONFIG_SMP
+#define cpu_has_llsc           1
+/* Disable LL/SC on non SMP systems. It is faster to disable interrupts for
+   atomic access than a LL/SC */
+#define cpu_has_llsc           0

It also means the resulting kernel won't have support for futex which
essentially means you're cut off from modern libcs.

It is possible to get this to work - but nobody bothered so far; ll/sc-less
R2000 class processors are very rare these days.  My recommendation is
to keep cpu_has_llsc as 1 until you've fixed up the futex implementation,
if you deciede so.

Someone should tell ip32 w/ R5000 this.  It seems that it is broken too.

This could explain why my R5000 O2 does weird things with glibc 2.8...

David Daney

<Prev in Thread] Current Thread [Next in Thread>