]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/lib: Use patch_site to patch copy_32 functions once cache is enabled
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 9 Aug 2018 08:14:41 +0000 (08:14 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Aug 2018 12:12:35 +0000 (22:12 +1000)
commitfa54a981ea7a852c145b05c95abba11e81fc1157
treecea88a64419bfe83d3e94e84cd154c0595278fa5
parentcd813e1cd7122f2c261dce5b54d1e0c97f80e1a5
powerpc/lib: Use patch_site to patch copy_32 functions once cache is enabled

The symbol memcpy_nocache_branch defined in order to allow patching
of memset function once cache is enabled leads to confusing reports
by perf tool.

Using the new patch_site functionality solves this issue.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/asm-prototypes.h
arch/powerpc/kernel/setup_32.c
arch/powerpc/lib/copy_32.S