]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc: Enable DCACHE_WORD_ACCESS on ppc64le
authorAnton Blanchard <anton@samba.org>
Thu, 18 Sep 2014 23:40:21 +0000 (09:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Sep 2014 04:59:13 +0000 (14:59 +1000)
commita75c380c7129c432f8ac9d42ebc170e5f7d9d31e
tree938a8c6500995508ffd540c7b860982ca67a955f
parent8989aa4adacd02174d1f72a00af8d669934a2b7a
powerpc: Enable DCACHE_WORD_ACCESS on ppc64le

Enable on DCACHE_WORD_ACCESS on ppc64le. It should work on
ppc64 and ppc32 but we need to do some testing first.

A somewhat reasonable testcase used to show the performance
improvement - a repeated stat of a 33 byte filename that
doesn't exist:

 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>

 #define ITERATIONS 10000000

 #define PATH "123456781234567812345678123456781"

 int main(void)
 {
  unsigned long i;
  struct stat buf;

  for (i = 0; i < ITERATIONS; i++)
  stat(PATH, &buf);

  return 0;
 }

runs 27% faster on POWER8.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig