Commit 3c2ce491 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

powerpc/epapr: Don't use wrteei on non booke

parent bfb03af7
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -21,7 +21,13 @@ _GLOBAL(epapr_ev_idle)
	ori	r4, r4,_TLF_NAPPING	/* so when we take an exception */
	ori	r4, r4,_TLF_NAPPING	/* so when we take an exception */
	PPC_STL	r4, TI_LOCAL_FLAGS(r2)	/* it will return to our caller */
	PPC_STL	r4, TI_LOCAL_FLAGS(r2)	/* it will return to our caller */


#ifdef CONFIG_BOOKE_OR_40x
	wrteei	1
	wrteei	1
#else
	mfmsr	r4
	ori	r4, r4, MSR_EE
	mtmsr	r4
#endif


idle_loop:
idle_loop:
	LOAD_REG_IMMEDIATE(r11, EV_HCALL_TOKEN(EV_IDLE))
	LOAD_REG_IMMEDIATE(r11, EV_HCALL_TOKEN(EV_IDLE))