mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] ppc: fix a bunch of warnings
Building a PowerMac kernel with ARCH=powerpc causes a bunch of warnings, this fixes some of them Signed-off-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
75722d3992
commit
21fe3301f1
5 changed files with 22 additions and 19 deletions
|
|
@ -2667,10 +2667,10 @@ powerbook_sleep_3400(void)
|
|||
asleep = 1;
|
||||
|
||||
/* Put the CPU into sleep mode */
|
||||
asm volatile("mfspr %0,1008" : "=r" (hid0) :);
|
||||
hid0 = mfspr(SPRN_HID0);
|
||||
hid0 = (hid0 & ~(HID0_NAP | HID0_DOZE)) | HID0_SLEEP;
|
||||
asm volatile("mtspr 1008,%0" : : "r" (hid0));
|
||||
_nmask_and_or_msr(0, MSR_POW | MSR_EE);
|
||||
mtspr(SPRN_HID0, hid0);
|
||||
mtmsr(mfmsr() | MSR_POW | MSR_EE);
|
||||
udelay(10);
|
||||
|
||||
/* OK, we're awake again, start restoring things */
|
||||
|
|
|
|||
Loading…
Reference in a new issue