[email protected]>, Linux-sh list <[email protected]>, Fabio 
Estevam <[email protected]>, Helge Deller <[email protected]>, Daniel Lezcano 
<[email protected]>, Jonathan Hunter <[email protected]>, Mathieu 
Desnoyers <[email protected]>, Frederic Weisbecker 
<[email protected]>, Len Brown <[email protected]>, "open list:TENSILICA XTENSA 
PORT \(xtensa\)" <[email protected]>, Sascha Hauer 
<[email protected]>, Vasily Gorbik <[email protected]>, linux-arm-msm 
<[email protected]>, alpha <[email protected]>, 
linux-m68k <[email protected]>, Stafford Horne 
<[email protected]>, Linux ARM <[email protected]>, Chris 
Zankel <[email protected]>, Stephen Boyd <[email protected]>, Dinh Nguyen 
<[email protected]>, Daniel Bristot de Oliveira <[email protected]>, 
Alexander Shishkin <[email protected]>, [email protected], 
Rasmus Villemoes <[email protected]>, Joel Fernandes <
 [email protected]>, Will Deacon <[email protected]>, Boris Ostrovsky 
<[email protected]>, Kevin Hilman <[email protected]>, 
[email protected], Pv-drivers <[email protected]>, "open 
list:SYNOPSYS ARC ARCHITECTURE" <[email protected]>, Mel 
Gorman <[email protected]>, [email protected], Arnd Bergmann 
<[email protected]>, Hans Ulli Kroll <[email protected]>, Vineet Gupta 
<[email protected]>, linux-clk <[email protected]>, Josh Triplett 
<[email protected]>, Steven Rostedt <[email protected]>, 
[email protected], Borislav Petkov <[email protected]>, [email protected], 
Thomas Bogendoerfer <[email protected]>, Parisc List 
<[email protected]>, Sudeep Holla <[email protected]>, Shawn Guo 
<[email protected]>, David Miller <[email protected]>, Rich Felker 
<[email protected]>, Tony Lindgren <[email protected]>, [email protected], 
Bjorn Andersson <[email protected]>, "H. Peter Anvin" <[email protected]
 om>, sparclinux <[email protected]>, "open l
ist:QUALCOMM HEXAGON..." <[email protected]>, linux-riscv 
<[email protected]>, Anton Ivanov 
<[email protected]>, Jonas Bonn <[email protected]>, Yury Norov 
<[email protected]>, Richard Weinberger <[email protected]>, the arch/x86 
maintainers <[email protected]>, Russell King - ARM Linux 
<[email protected]>, Ingo Molnar <[email protected]>, Albert Ou 
<[email protected]>, "Paul E. McKenney" <[email protected]>, Heiko 
Carstens <[email protected]>, Stefan Kristiansson 
<[email protected]>, Openrisc <[email protected]>, 
Paul Walmsley <[email protected]>, "open list:TEGRA ARCHITECTURE 
SUPPORT" <[email protected]>, Namhyung Kim <[email protected]>, 
Andy Shevchenko <[email protected]>, [email protected], 
Juergen Gross <[email protected]>, Michal Simek <[email protected]>, "open 
list:BROADCOM NVRAM DRIVER" <[email protected]>, Palmer Dabbelt 
<[email protected]>, Anup Patel <anu
 [email protected]>, Ivan Kokshaysky <[email protected]>, Johannes 
Berg <[email protected]>, linuxppc-dev <[email protected]>
Errors-To: [email protected]
Sender: "Linuxppc-dev" 
<[email protected]>

On Wed, Jun 8, 2022 at 4:27 PM Peter Zijlstra <[email protected]> wrote:
>
> Current arch_cpu_idle() is called with IRQs disabled, but will return
> with IRQs enabled.
>
> However, the very first thing the generic code does after calling
> arch_cpu_idle() is raw_local_irq_disable(). This means that
> architectures that can idle with IRQs disabled end up doing a
> pointless 'enable-disable' dance.
>
> Therefore, push this IRQ disabling into the idle function, meaning
> that those architectures can avoid the pointless IRQ state flipping.
>
> Signed-off-by: Peter Zijlstra (Intel) <[email protected]>

I think you now need to add the a raw_local_irq_disable(); in loongarch
as well.

       Arnd

Reply via email to