From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reinhard Meyer Date: Mon, 01 Nov 2010 09:37:27 +0100 Subject: [U-Boot] [PATCH 1/2] arm: a320 timer: move static data to global_data struct In-Reply-To: <1288598775-1898-1-git-send-email-ratbert.chuang@gmail.com> References: <1288598775-1898-1-git-send-email-ratbert.chuang@gmail.com> Message-ID: <4CCE7C47.1060604@emk-elektronik.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 ratbert.chuang, > From: Po-Yu Chuang > > timer.c used static data and are called before relocation. > Move all static variables into global_data structure. Also cleanup > timer.c from unused stubs and make it truly use 64 bit tick values. > > Based on Reinhard Meyer 's patch > 5dca710a3d7703e41da0e9894f2d71f9e25bea6b > > Signed-off-by: Po-Yu Chuang Can you hold on with this for a few days? Recent discussions about the timer issue have revealed that there are potential improvements and mainly udelay() needs a minor fix to prevent a potential failure after a few billion years. I have improvements in mind and will implement them in a few days, and would appreciate if not so perfect code would not be copied and spread before that ;) Best Regards, Reinhard