Skip to content

Remove inline arch_reset definitions from system.h

Deepak Saxena linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. 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.

Read the v1 thread

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_reset definitions from the mach/system.h files, which is currently a blocker for the single zImage work. Nicolas has some patches doing a similar thing for arch_idle. In cases where a new file has been introduced and it looks like arch_idle could co-exist in there, I've named the new file system.c but 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 an at91_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_reset into the mach_desc and 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