From: Wolfgang Denk Date: Sun, 17 Jan 2010 22:32:22 +0100 Subject: [U-Boot] [PATCH 0/2] omap3: Optimize detection of cpu revision In-Reply-To: References: Message-ID: <20100117213222.3108FC88AE@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sanjeev, in message 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."