Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377234
b: refs/heads/master
c: d72ee6b
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Larsson authored and David S. Miller committed Jun 19, 2013
1 parent 3732c3c commit ebbbbb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ffbc51a0d00e52983c70aa7c8dbc7b621d6287d
refs/heads/master: d72ee6be58b7c99a6e8da6584106c5958dae2bf8
7 changes: 7 additions & 0 deletions trunk/arch/sparc/kernel/leon_pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ void pmc_leon_idle_fixup(void)
* MMU does not get a TLB miss here by using the MMU BYPASS ASI.
*/
register unsigned int address = (unsigned int)leon3_irqctrl_regs;

/* Interrupts need to be enabled to not hang the CPU */
local_irq_enable();

__asm__ __volatile__ (
"wr %%g0, %%asr19\n"
"lda [%0] %1, %%g0\n"
Expand All @@ -60,6 +64,9 @@ void pmc_leon_idle_fixup(void)
*/
void pmc_leon_idle(void)
{
/* Interrupts need to be enabled to not hang the CPU */
local_irq_enable();

/* For systems without power-down, this will be no-op */
__asm__ __volatile__ ("wr %g0, %asr19\n\t");
}
Expand Down

0 comments on commit ebbbbb6

Please sign in to comment.