parisc: optimize mtsp(0,sr) inline assembly
authorHelge Deller <deller@gmx.de>
Sat, 29 Jun 2013 20:08:03 +0000 (22:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2013 01:21:26 +0000 (18:21 -0700)
commita2ebe4443fd55755cae5834e3f3021d3572cc463
tree1eef36eb34dbe5211c8d14aab963c0a1589668d2
parent286f3bf473da48489bb539c08088fbb8dc64a35c
parisc: optimize mtsp(0,sr) inline assembly

commit 92b59929825d67db575043a76651865d16873b36 upstream.

If the value which should be moved into a space register is zero, we can
optimize the inline assembly to become "mtsp %r0,%srX".

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/special_insns.h