Skip to contentSkip to conversation

Patch for RaQ2 - cpu features.h

PATCH Jim Gifford 1 participant 1 message Dec 5, 2005 MIPS

lore
Share & tools
lore
#0 lore raw

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

Signature · 3 lines
----
Jim Gifford
[email protected]
include/asm-mips/cobalt/cpu-feature-overrides.h +24 -0
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
@@ -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 protected])
+ */
+#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 */