Skip to contentSkip to conversation

Cpu features overrides for msp platforms.

PATCH Applied Anoop P.A 3 participants 5 messages Jan 25, 2011 – Feb 11, 2011 MIPS

lore
Share & tools
lore

Anoop P.A

author
#0 lore raw

PATCH 6/6 Cpu features overrides for msp platforms.

From: Anoop P A <[email protected]>

---
 .../asm/pmc-sierra/msp71xx/cpu-feature-overrides.h |   21 ++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 arch/mips/include/asm/pmc-sierra/msp71xx/cpu-feature-overrides.h
arch/mips/include/asm/pmc-sierra/msp71xx/cpu-feature-overrides.h new file +21 -0
new file mode 100644
index 0000000..a80801b
@@ -0,0 +1,21 @@
+/*
+ * 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, 04, 07 Ralf Baechle ([email protected])
+ */
+#ifndef __ASM_MACH_MSP71XX_CPU_FEATURE_OVERRIDES_H
+#define __ASM_MACH_MSP71XX_CPU_FEATURE_OVERRIDES_H
+
+#define cpu_has_mips16		1
+#define cpu_has_dsp		1
+#define cpu_has_mipsmt		1
+#define cpu_has_fpu		0
+
+#define cpu_has_mips32r1	0
+#define cpu_has_mips32r2	1
+#define cpu_has_mips64r1	0
+#define cpu_has_mips64r2	0
+
+#endif /* __ASM_MACH_MSP71XX_CPU_FEATURE_OVERRIDES_H */
Signature · 1 line
1.7.0.4
#1 lore raw

Hello.

Quoted 4 lines · Anoop P.A

From: Anoop P A<[email protected]>

[...]

arch/mips/include/asm/pmc-sierra/msp71xx/cpu-feature-overrides.h line 6

Quoted 12 lines
arch/mips/include/asm/pmc-sierra/msp71xx/cpu-feature-overrides.h new file +6 -0
new file mode 100644
index 0000000..a80801b
@@ -0,0 +1,21 @@
+/*
+ * 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, 04, 07 Ralf Baechle ([email protected])

If you're the author, how come it's Ralf's copyright here?

WBR, Sergei

author
#2 lore raw
Quoted 10 lines · Sergei Shtylyov

Hello.

Quoted 4 lines · Anoop P.A

From: Anoop P A<[email protected]>

[...]

Quoted 14 lines

arch/mips/include/asm/pmc-sierra/msp71xx/cpu-feature-overrides.h line 6

Quoted 12 lines
arch/mips/include/asm/pmc-sierra/msp71xx/cpu-feature-overrides.h new file +6 -0
new file mode 100644
index 0000000..a80801b
@@ -0,0 +1,21 @@
+/*
+ * 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, 04, 07 Ralf Baechle ([email protected])

If you're the author, how come it's Ralf's copyright here?

I just copied that file from some other platform.

Quoted 2 lines

WBR, Sergei

Applied
#3 lore raw
In reply to Anoop P.A

Queued for 2.6.39, thanks!

But: this is a rather short cpu-feature-overrides.h file. You can shrink the kernel significantly and get a little performance boost by further defines in that file. In particular defining the symbols for cache and TLB properties such as the cpu_dcache_line_size and cpu_icache_line_size are very effective.

Ralf

author
#4 lore raw
Quoted 7 lines · Ralf Baechle

Queued for 2.6.39, thanks!

But: this is a rather short cpu-feature-overrides.h file. You can shrink the kernel significantly and get a little performance boost by further defines in that file. In particular defining the symbols for cache and TLB properties such as the cpu_dcache_line_size and cpu_icache_line_size are very effective.

Can you point me to reference file ?.

Quoted 2 lines

Ralf