lkml.org 
[lkml]   [2015]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v4 0/2] powerpc32: memcpy/memset: only use dcbz once cache is enabled
Date
memcpy() and memset() use instruction dcbz to speed up copy by not
wasting time loading cache lines with data that will be overwritten.
Some platform like mpc52xx do no have cache active at startup and
can therefore not use memcpy(). Allthough no part of the code
explicitly uses memcpy() and memset(), GCC makes calls to them.

Christophe Leroy (2):
powerpc32: memcpy: only use dcbz once cache is enabled
powerpc32: memset: only use dcbz once cache is enabled

arch/powerpc/kernel/setup_32.c | 6 ++++++
arch/powerpc/lib/copy_32.S | 11 +++++++++++
2 files changed, 17 insertions(+)

--
2.1.0



\
 
 \ /
  Last update: 2015-09-16 12:41    [W:0.721 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site