Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1225968 > unrolled thread
| Started by | Christophe Leroy <christophe.leroy@c-s.fr> |
|---|---|
| First post | 2015-09-16 12:30 +0200 |
| Last post | 2015-09-16 12:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH v4 0/2] powerpc32: memcpy/memset: only use dcbz once cache is enabled Christophe Leroy <christophe.leroy@c-s.fr> - 2015-09-16 12:30 +0200
| From | Christophe Leroy <christophe.leroy@c-s.fr> |
|---|---|
| Date | 2015-09-16 12:30 +0200 |
| Subject | [PATCH v4 0/2] powerpc32: memcpy/memset: only use dcbz once cache is enabled |
| Message-ID | <q9hP5-1id-53@gated-at.bofh.it> |
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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web