summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/segbuf.h
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2015-04-27 15:07:18 +0100
committerRalf Baechle <ralf@linux-mips.org>2015-06-21 21:53:55 +0200
commit8fe4908b837e848efd95c2a1210ec67d48fbe874 (patch)
tree2904ada9eebee55add9f878c96cdcec6e925c4be /fs/nilfs2/segbuf.h
parenta3ae565a130a4f34f4a3f45f72c2e8fd8b402b8c (diff)
downloadop-kernel-dev-8fe4908b837e848efd95c2a1210ec67d48fbe874.zip
op-kernel-dev-8fe4908b837e848efd95c2a1210ec67d48fbe874.tar.gz
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 <james.hogan@imgtec.com> Cc: Steven J. Hill <Steven.Hill@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9889/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'fs/nilfs2/segbuf.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud