[PATCH 5/6] ARM: ux500: move PRCMU functions into the CPUidle driver

Arnd Bergmann arnd at arndb.de
Mon Mar 25 11:13:21 EDT 2013


On Monday 25 March 2013, Linus Walleij wrote:
> This set of functions are called both for idling and suspend, i.e.
> both by the machine-specific cpuidle driver and the machine-specific
> suspend code.
> 
> They are conceptually coherent functions but messing with both PRCMU
> and GIC registers, moving the responsibility of keeping track of the
> IRQs back and forth between the GIC and the PRCMU.
> 
> Being able to freeze and decouple the GIC and check if a CPU is
> in WFI is a ux500-PRCMU-specific pecularity but saves us a lot of
> criss-cross IPIs when going to idle or sleep.

I still don't understand. From what I can tell, all those functions are
now statically declared in the cpuidle driver after your patch, so it
sounds like you do not need a header file for them any more, where
you needed one before. Which of those would you declare in a hypothetical
linux/pm/ux500.h header file?

	Arnd



More information about the linux-arm-kernel mailing list