Re: [PATCH 3/9] arm: add call to CPU idle quirks handler

Arnd Bergmann
2015-06-26T07:42:07Z

On Friday 26 June 2015 07:30:49 Paul Osmialowski wrote:
> ENDPROC(cpu_kinetis_do_idle)
>
> But... what about the rest of this hypothetical proc_kinetis.S file?
>
> It would be a lot of code duplication with proc-v7m.S I think.
>

I doubt that the Kinetis has a custom version of the CPU core. Are you
sure that not all Cortex-M4 need this?

As long as the idle implementation depends only on the CPU core type,
it's easy to just define multiple .proc.info.init entries in the
same file, like we do in proc-v7.S.

Arnd