linux-mips
[Top] [All Lists]

Re: [PATCH 3/7] Add XLR/XLS cache and TLB support

To: Jayachandran C <jayachandranc@netlogicmicro.com>
Subject: Re: [PATCH 3/7] Add XLR/XLS cache and TLB support
From: David Daney <ddaney@caviumnetworks.com>
Date: Wed, 16 Mar 2011 09:49:06 -0700
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <cadf7ed67683e96d920fedc87d8fc5d6dbdccdc7.1300275485.git.jayachandranc@netlogicmicro.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1300275485.git.jayachandranc@netlogicmicro.com> <cadf7ed67683e96d920fedc87d8fc5d6dbdccdc7.1300275485.git.jayachandranc@netlogicmicro.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 03/16/2011 04:57 AM, Jayachandran C wrote:
[...]
diff --git a/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h 
b/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h
new file mode 100644
index 0000000..7740401
--- /dev/null
+++ b/arch/mips/include/asm/mach-netlogic/cpu-feature-overrides.h
@@ -0,0 +1,9 @@
+#ifndef __ASM_MACH_NETLOGIC_CPU_FEATURE_OVERRIDES_H
+#define __ASM_MACH_NETLOGIC_CPU_FEATURE_OVERRIDES_H
+
+/*
+ * Most of the properties are in cpu->options
+ */
+#define cpu_has_netlogic_cache 1
+
+#endif /* __ASM_MACH_NETLOGIC_CPU_FEATURE_OVERRIDES_H */

Although this will probably work, you will likely get better performance if you supply static default values for as many overrides as possible.

David Daney

<Prev in Thread] Current Thread [Next in Thread>