Skip to content
Commit f59a2d22 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Optimize pgd_init and pmd_init



On a dual issue processor GCC generates code that saves a couple of
clock cycles per loop if we rearrange things slightly.  Checking for
p != end saves a SLTU per loop, moving the increment to the middle can
let it dual issue on multi-issue processors.

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4249/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a7911a8f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment