linux-mips
[Top] [All Lists]

[PATCH 2.6] fix mips atomic_lock declaration

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 2.6] fix mips atomic_lock declaration
From: Peter Buckingham <peter@pantasys.com>
Date: Mon, 13 Sep 2004 15:33:09 -0700
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4
Hi Ralf,

I modified the declaration of atomic_lock to be static. This means that I can now build and run SMP on the 1250. See attached patch.

peter

Signed-off-by: Peter Buckingham <peter@pantasys.com>
? include/asm-mips/.atomic.h.swp
? include/asm-mips/agp.h
Index: include/asm-mips/atomic.h
===================================================================
RCS file: /home/cvs/linux/include/asm-mips/atomic.h,v
retrieving revision 1.36
diff -u -r1.36 atomic.h
--- include/asm-mips/atomic.h   19 Aug 2004 09:54:23 -0000      1.36
+++ include/asm-mips/atomic.h   13 Sep 2004 21:51:56 -0000
@@ -26,7 +26,7 @@
 #include <asm/cpu-features.h>
 #include <asm/war.h>
 
-extern spinlock_t atomic_lock;
+static spinlock_t atomic_lock;
 
 typedef struct { volatile int counter; } atomic_t;
 
<Prev in Thread] Current Thread [Next in Thread>