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

Wolfgang Denk wd at denx.de
Sun Jan 17 22:32:22 CET 2010


Dear Sanjeev,

in message <B85A65D85D7EB246BE421B3FB0FBB59301E1EB4A5D at dbde02.ent.ti.com> you wrote:
>
> Also, I believe faster execution time is always better; not just
> in critical sections of code. I possibly used "global" quite loosely;
> while responding earlier. The variable cpu_revision (being discussed)
> here is actually a 'static'. (See patch 1/2).

So how much faster is reading this variable compared to reading from
the register?

Can you really measure _any_ difference?

> But, if we feel otherwise, I can revert to executing detection
> mechanism each time in the function.

Please undo this.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Ernest asks Frank how long he has been working for the company.
        "Ever since they threatened to fire me."


More information about the U-Boot mailing list