From: Reinhard Meyer Date: Thu, 06 Jan 2011 09:53:10 +0100 Subject: [U-Boot] [PATCH] S3C64XX: timer: replace bss variable by gd In-Reply-To: References: <4D22D6F7.3050609@samsung.com> <4D2332BF.4080607@gmail.com> <4D233518.6070407@gmail.com> <4D2494EC.7020205@gmail.com> Message-ID: <4D2582F6.2040909@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 concerned, >>>>>> Use the global data instead of bss variable, replace as follow. >>>>>> timer_load_val -> timer_rate_hz >>>>>> timestamp -> timer_reset_value I am not too happy about this "misuse" of gd->variables making them "misnomers" and the code harder to read. timer_rate_hz is supposed to hold the rate at which the high speed timer increments. timer_reset_value supposedly holds the high speed timer's value when timer_reset() is called. There was a discussion started about this a while ago, but came to no conclusion... Best Regards, Reinhard