Remove inline arch_reset definitions from system.h
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 51 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 51 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/51] Remove inline arch_reset definitions from system.h
Quoted 16 lines · Deepak Saxena
On Oct 28 2011, at 15:43, Will Deacon was caught saying:
Quoted 15 lines
Well, looks like I finally made it and I reckon I've managed to preserve my sanity.
This patch series removes the inline
arch_resetdefinitions from themach/system.hfiles, which is currently a blocker for the single zImage work. Nicolas has some patches doing a similar thing forarch_idle. In cases where a new file has been introduced and it looks likearch_idlecould co-exist in there, I've named the new filesystem.cbut it will mean that Nicolas will need to rebase his stuff on top of this.I think I've compile-tested this whenever I could identify the right defconfig, but my brain stopped working about 25% of the way through.
Thanks to Paul Walmsley for saving me from the OMAP changes.
Quoted 7 lines
Quoted 1 line
Comments / suggestions / fixups welcome.
I like the idea, I'm wondering about having stuffing a pointer to an init function to assign the pointer into
mach_desc? In the at91 case, we've got 7 board files assiging the same pointer. Instead we could just have anat91_arch_reset_init()that only needs to be in one .c file.
/ignore me. I missread the patch and though they were all being assigned to the same function.
Quoted 5 lines
Another idea is to just stuff the pointer to the machine's
arch_resetinto themach_descand generic init code could read it. In the case of a some weird board version related quirk that can only be detected by some runtime register poking (i.e. ?not via the DT machine compatability), we could update the pointer in machines'fixup()function.
~Deepak