[PATCH 3/5] powerpc/microwatt: Define an idle power-save function
Segher Boessenkool
segher at kernel.crashing.org
Sat Feb 1 03:25:38 AEDT 2025
Hi!
> +static void microwatt_idle(void)
> +{
> + if (!prep_irq_for_idle())
> + return;
> +
> + __asm__ __volatile__ ("wait");
> +}
All asm without outputs is always implicitly volatile (if it wasn't, it
could always be transfirmed whatever way you want, like, optimised away
completely).
It can still be useful for documentation purposes of course, but here it
is the other way around really, it is just cargo cult :-(
Segher
More information about the Linuxppc-dev
mailing list