Skip to content

RFC ARM: Add a generic macro for declaring proc_info structs

Dave Martin linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 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 [RFC PATCH 0/2] ARM: Add a generic macro for declaring proc_info structs
Quoted 11 lines · Russell King - ARM Linux
Quoted 5 lines · Dave Martin

Using macros such as you suggest would force a consistent naming on different CPUs' helper functions, which actually seems rather a good thing. A possible downside is that the relationship between those functions and the macro becomes invisible in proc-*.S (though a very brief comment or two could easibly address that).

The consistent naming is already required for the !MULTI_CPU, etc. Same for the cache and tlb structs.

The processor structure has less strict requirements though.

OK, well I might have a go at this for the CPU func structs at some point, and see how it turns out.

Cheers
---Dave