[U-Boot] [PATCH 0/2] omap3: Optimize detection of cpu revision

Tom Tom.Rix at windriver.com
Tue Dec 15 18:14:20 CET 2009


Sanjeev Premi wrote:
> Each call to get_cpu_rev() leads to repetitive
> execution of code to detect the cpu revision.
> 
> This patchset ensures that mechanism to detect
> revision is not executed each time; instead a
> stored value is returned.
> 
> Since, revision info is needed in s_init(),
> the function to identify cpu revision needs
> to be called twice. At the moment, it is
> necessary/ unavoidable.
> 

Is there some other reason to read this register only once?
This function is not used frequently and i do not
think the complexity of optimizing is necessary.

Tom


More information about the U-Boot mailing list