[U-Boot] [PATCH v2] Move ICS CLK chip frequenty calculation code into a common board library

Timur Tabi timur at freescale.com
Mon May 24 21:06:59 CEST 2010


On Mon, May 24, 2010 at 1:57 PM, Kumar Gala <galak at kernel.crashing.org> wrote:

> What in the world does 'const' get me in C.

Actually, scrap that.  A const function tells the compiler that, for a
given set of parameters, the returned value is always the same, so the
compiler will eliminate redundant calls to the function.  But the
problem is that it needs to be a const __attribute__, and the debug()
call would need to be deleted for it to be valid anyway.

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the U-Boot mailing list