Skip to content
  • Anton Blanchard's avatar
    powerpc: Enable DCACHE_WORD_ACCESS on ppc64le · a75c380c
    Anton Blanchard authored
    
    
    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: default avatarAnton Blanchard <anton@samba.org>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    a75c380c