On Wed, Mar 16, 2011 at 09:49:06AM -0700, David Daney wrote:
> 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.
True, we will miss possible compile-time optimizations, will
look at this.
Thanks!
JC.
--
Jayachandran C.
jayachandranc@netlogicmicro.com (Netlogic Microsystems)
jchandra@freebsd.org (The FreeBSD Project)
|