summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/leon_pmc.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-04-06 17:51:48 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-06 17:51:48 -0400
commit598ec971ddcf7dcb0c381230e69a39c75b7fac1a (patch)
treecc8c1268d7d3a27f51e0a13adc04d68375eb85a8 /arch/sparc/kernel/leon_pmc.c
parentd6d88bae97d2e1c44ef9e2ae3f22de82fa6e11c5 (diff)
downloadlinux-598ec971ddcf7dcb0c381230e69a39c75b7fac1a.tar.bz2
sparc: Consistently use 'wr' and 'rd' instructions for ASRs.
For consistency, don't use 'mov'. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/leon_pmc.c')
-rw-r--r--arch/sparc/kernel/leon_pmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/leon_pmc.c b/arch/sparc/kernel/leon_pmc.c
index 708bca435219..bdf53d9a8d46 100644
--- a/arch/sparc/kernel/leon_pmc.c
+++ b/arch/sparc/kernel/leon_pmc.c
@@ -48,7 +48,7 @@ void pmc_leon_idle_fixup(void)
*/
register unsigned int address = (unsigned int)leon3_irqctrl_regs;
__asm__ __volatile__ (
- "mov %%g0, %%asr19\n"
+ "wr %%g0, %%asr19\n"
"lda [%0] %1, %%g0\n"
:
: "r"(address), "i"(ASI_LEON_BYPASS));
@@ -61,7 +61,7 @@ void pmc_leon_idle_fixup(void)
void pmc_leon_idle(void)
{
/* For systems without power-down, this will be no-op */
- __asm__ __volatile__ ("mov %g0, %asr19\n\t");
+ __asm__ __volatile__ ("wr %g0, %asr19\n\t");
}
/* Install LEON Power Down function */