Pentium M config option for 2.6
Quoted 1 line · Tomas Szepe
Since the Pentium M has 64 byte cache lines and is not a K7 or K8... ;)
...
arch/i386/Makefile line 41
Quoted 10 lines
arch/i386/Makefile +1
-0@@ -35,6 +35,7 @@ cflags-$(CONFIG_MPENTIUMII) += $(call check_gcc,-march=pentium2,-march=i686) cflags-$(CONFIG_MPENTIUMIII) += $(call check_gcc,-march=pentium3,-march=i686) cflags-$(CONFIG_MPENTIUM4) += $(call check_gcc,-march=pentium4,-march=i686) +cflags-$(CONFIG_MPENTIUMM) += $(call check_gcc,-march=pentium4,-march=i686) cflags-$(CONFIG_MK6) += $(call check_gcc,-march=k6,-march=i586) # Please note, that patches that add -march=athlon-xp and friends are pointless. # They make zero difference whatsosever to performance at this time.
P-M is not a P4 core, it's an enhanced PIII core. SSE2 was added, but compiler support for SSE2 f.p. math shouldn't matter for the kernel.
Using P4 optimisations on a P-M may actually reduce performance, due to the different micro-architectures. (P4 made shifts and some leas more expensive, and simple add/and/sub/etc less expensive.)
IOW, don't lie to the compiler and pretend P-M == P4 with that -march=pentium4.
And since P-M doesn't do SMP, does cache line size even matter? There are no locks to protect from ping-ponging.
/Mikael