From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Wed, 25 May 2011 22:17:56 +1000 Subject: [U-Boot] [PATCH] [Timer]Remove calls to [get, reset]_timer outside arch/ In-Reply-To: <1306234440-3486-1-git-send-email-graeme.russ@gmail.com> References: <1306151649-25640-1-git-send-email-graeme.russ@gmail.com> <1306234440-3486-1-git-send-email-graeme.russ@gmail.com> Message-ID: <4DDCF374.6090705@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24/05/11 20:54, Graeme Russ wrote: > There is no need to use set_timer() and reset_timer() and there are build > breakages occuring because of them (specifically cfi_flash). Remove any > usage outside arch/ to fix build breakages and to prepare for complete > removal > > The Nios2 timer implentation updates every 10ms (increases in 10ms steps) > and required a reset_timer() call before timing operations. For Nios2, call > reset_timer() when get_timer() is called with a parameter value of 0 That's not going to work either - start = get_timer(0) will reset the timer and set start to zero so get_timer(start) will continually reset the timer and return zero :( Stay tuned for v3 :) Regards, Graeme