Re: [PATCH] powerpc/irq: remove inline assembly in hard_irq_disable macro

2022-07-04 Thread Michael Ellerman
On Wed, 18 May 2022 10:48:55 +0200, Christophe Leroy wrote: > Use WRITE_ONCE() instead of opencoding the saving of current > stack pointeur. > > Applied to powerpc/next. [1/1] powerpc/irq: remove inline assembly in hard_irq_disable macro

[PATCH] powerpc/irq: remove inline assembly in hard_irq_disable macro

2022-05-18 Thread Christophe Leroy
Use WRITE_ONCE() instead of opencoding the saving of current stack pointeur. Signed-off-by: Christophe Leroy --- By the way, is WRITE_ONCE() needed at all ? Could we instead do local_paca->saved_r1 = current_stack_pointer; --- arch/powerpc/include/asm/hw_irq.h | 4 +--- 1 file changed, 1