Subject: Patch for RaQ2 - cpu features.h

From: Jim Gifford <[email-masked]>
Date: Sun, 04 Dec 2005 21:15:26 -0800

This replaces the cpu-probe.c hack we had before, which disabled ll_sc.. 
I followed the format of theother cpu-feature-overrides.h.

-- 
----
Jim Gifford
[email-masked]

diff -Naur linux-2.6.14.orig/include/asm-mips/cobalt/cpu-feature-overrides.h linux-2.6.14/include/asm-mips/cobalt/cpu-feature-overrides.h
--- linux-2.6.14.orig/include/asm-mips/cobalt/cpu-feature-overrides.h	1970-01-01 00:00:00.000000000 +0000
+++ linux-2.6.14/include/asm-mips/cobalt/cpu-feature-overrides.h	2005-11-29 23:02:33.000000000 +0000
@@ -0,0 +1,24 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License.  See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2003, 2004 Chris Dearman
+ * Copyright (C) 2005 Ralf Baechle ([email-masked])
+ */
+#ifndef __ASM_COBALT_MIPS_CPU_FEATURE_OVERRIDES_H
+#define __ASM_COBALT_MIPS_CPU_FEATURE_OVERRIDES_H
+
+#include <linux/config.h>
+
+/*
+ * CPU feature overrides for Cobalt Servers
+ */
+
+#ifdef CONFIG_64BIT
+#define cpu_has_llsc            0
+#else
+#define cpu_has_llsc            1
+#endif
+
+#endif /* __ASM_COBALT_MIPS_CPU_FEATURE_OVERRIDES_H */