From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Tue, 15 Dec 2009 11:14:20 -0600 Subject: [U-Boot] [PATCH 0/2] omap3: Optimize detection of cpu revision In-Reply-To: <1260883106-4588-1-git-send-email-premi@ti.com> References: <1260883106-4588-1-git-send-email-premi@ti.com> Message-ID: <4B27C3EC.1050505@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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