diff options
Diffstat (limited to 'arch/powerpc/kernel/idle_power7.S')
-rw-r--r-- | arch/powerpc/kernel/idle_power7.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/idle_power7.S b/arch/powerpc/kernel/idle_power7.S index 3a70845a51c7..fcdff198da4b 100644 --- a/arch/powerpc/kernel/idle_power7.S +++ b/arch/powerpc/kernel/idle_power7.S | |||
@@ -54,6 +54,7 @@ _GLOBAL(power7_idle) | |||
54 | li r0,0 | 54 | li r0,0 |
55 | stb r0,PACASOFTIRQEN(r13) /* we'll hard-enable shortly */ | 55 | stb r0,PACASOFTIRQEN(r13) /* we'll hard-enable shortly */ |
56 | stb r0,PACAHARDIRQEN(r13) | 56 | stb r0,PACAHARDIRQEN(r13) |
57 | stb r0,PACA_NAPSTATELOST(r13) | ||
57 | 58 | ||
58 | /* Continue saving state */ | 59 | /* Continue saving state */ |
59 | SAVE_GPR(2, r1) | 60 | SAVE_GPR(2, r1) |
@@ -86,6 +87,9 @@ _GLOBAL(power7_wakeup_loss) | |||
86 | rfid | 87 | rfid |
87 | 88 | ||
88 | _GLOBAL(power7_wakeup_noloss) | 89 | _GLOBAL(power7_wakeup_noloss) |
90 | lbz r0,PACA_NAPSTATELOST(r13) | ||
91 | cmpwi r0,0 | ||
92 | bne .power7_wakeup_loss | ||
89 | ld r1,PACAR1(r13) | 93 | ld r1,PACAR1(r13) |
90 | ld r4,_MSR(r1) | 94 | ld r4,_MSR(r1) |
91 | ld r5,_NIP(r1) | 95 | ld r5,_NIP(r1) |