linux-mips
[Top] [All Lists]

Patch for RaQ2 - cpu features.h

To: Linux MIPS List <linux-mips@linux-mips.org>
Subject: Patch for RaQ2 - cpu features.h
From: Jim Gifford <maillist@jg555.com>
Date: Sun, 04 Dec 2005 21:15:26 -0800
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
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
maillist@jg555.com

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 (ralf@linux-mips.org)
+ */
+#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 */
<Prev in Thread] Current Thread [Next in Thread>
  • Patch for RaQ2 - cpu features.h, Jim Gifford <=