[PATCH 0/7] at91 : pm.h cleanups
Arnd Bergmann
arnd.bergmann at linaro.org
Wed Jan 11 10:23:57 EST 2012
On Wednesday 11 January 2012, Daniel Lezcano wrote:
>
> This patchset is the first series to cleanup some code around pm.h, pm.c and
> cpuidle. The next series will bring more cleanups and finally the third series
> will change the different functions into ops where we can export the structure
> definition in order to encapsulate the code and move the at91's cpuidle driver
> to the drivers/cpuidle directory.
Hi Daniel,
These all look like useful cleanups. You don't really have to split them
up into so small units, but it doesn't hurt if you do. Patch 5 seems to
actually fix a bug, but probably a harmless one.
It's not clear where you're headed though, I hope that becomes more obvious
in the next patches. The tricky bit that will have to be done is to turn
all the #ifdef checks into runtime here. You have moved the #include for the
memory controller into a new header, but that is not actually progress
on this larger problem. It would be nice to move the
sdram_selfrefresh_enable/disable functions into a .c file that uses
cpu_is_at91...() to do runtime detection, but AFAICT that won't work
because you have to guarantee that all the code between these is
in the cache, right?
Arnd
More information about the linux-arm-kernel
mailing list