From: James Hogan Date: Mon, 27 Apr 2015 14:07:18 +0000 (+0100) Subject: MIPS: tlbex: Avoid unnecessary _PAGE_PRESENT shifts X-Git-Tag: omap-for-v4.2/fixes-rc1^2~82^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fe4908b837e848efd95c2a1210ec67d48fbe874;p=pandora-kernel.git MIPS: tlbex: Avoid unnecessary _PAGE_PRESENT shifts Commit c5b367835cfc ("MIPS: Add support for XPA.") added generation of a shift by _PAGE_PRESENT_SHIFT in build_pte_present() and build_pte_writable(), however except for the XPA case this is always zero making it unnecessary. Make the shift conditional upon _PAGE_PRESENT_SHIFT being non-zero to save an instruction in those cases. Fixes: c5b367835cfc ("MIPS: Add support for XPA.") Signed-off-by: James Hogan Cc: Steven J. Hill Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9889/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed