summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/setup_32.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2017-08-23 16:54:36 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-09-01 16:42:46 +1000
commit7bf6057b962016eee57bc76295f80a26f90172f7 (patch)
treef4b5f7cebcbe57cb9e983d5c117667239c89f1f0 /arch/powerpc/kernel/setup_32.c
parentc0622167e3d4195d50b925bfabd8966589635e75 (diff)
powerpc/32: optimise memset()
There is no need to extend the set value to an int when the length is lower than 4 as in that case we only do byte stores. We can therefore immediately branch to the part handling it. By separating it from the normal case, we are able to eliminate a few actions on the destination pointer. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
0 files changed, 0 insertions, 0 deletions