From: Mike Frysinger Date: Mon, 30 Mar 2009 21:10:05 -0400 Subject: [U-Boot] core ticks/timer code In-Reply-To: <49CDCCC1.5050503@googlemail.com> References: <200903272130.26825.vapier@gentoo.org> <49CDCCC1.5050503@googlemail.com> Message-ID: <200903302110.06020.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de so if we were to document things, it should read like this: - CONFIG_SYS_HZ is required to be 1000 - get_ticks() / get_tbclk() should be deprecated -- use get_timer() instead - get_timer(X) returns the number of milliseconds since the last call to reset_timer(), minus X (which is in milliseconds too) is there any reason to keep ticks/tbclk around ? looking at consumers of these functions, they seem to re-implement the get_timer() logic anyways. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20090330/4c60685f/attachment.pgp