diff options
| author | Tom Rini <trini@ti.com> | 2013-03-11 12:02:40 -0400 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-03-11 12:16:13 -0400 | 
| commit | 76b40ab41eff1f402ee52ba768b09daad293b9bb (patch) | |
| tree | 4956296adbdc8939aa49d84fa9bd497eef65b7f4 /arch/x86/lib/timer.c | |
| parent | de62688bb61c499ecc2d70a3aa8ccf90bb7a8ef6 (diff) | |
| parent | fc959081d41aab2d6f4614c5fb3dd1b77ffcdcf4 (diff) | |
| download | olio-uboot-2014.01-76b40ab41eff1f402ee52ba768b09daad293b9bb.tar.xz olio-uboot-2014.01-76b40ab41eff1f402ee52ba768b09daad293b9bb.zip | |
Merge u-boot/master into u-boot-ti/master
In master we had already taken a patch to fix the davinci GPIO code for
CONFIG_SOC_DM646X and in u-boot-ti we have additional patches to support
DA830 (which is CONFIG_SOC_DA8XX && !CONFIG_SOC_DA850).  Resolve these
conflicts manually and comment the #else/#endif lines for clarity.
Conflicts:
	arch/arm/include/asm/arch-davinci/gpio.h
	drivers/gpio/da8xx_gpio.c
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/x86/lib/timer.c')
| -rw-r--r-- | arch/x86/lib/timer.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/arch/x86/lib/timer.c b/arch/x86/lib/timer.c index a13424b3e..1f8ce609e 100644 --- a/arch/x86/lib/timer.c +++ b/arch/x86/lib/timer.c @@ -37,7 +37,6 @@ struct timer_isr_function {  static struct timer_isr_function *first_timer_isr;  static unsigned long system_ticks; -static uint64_t base_value;  /*   * register_timer_isr() allows multiple architecture and board specific @@ -102,7 +101,7 @@ ulong get_timer(ulong base)  void timer_set_tsc_base(uint64_t new_base)  { -	base_value = new_base; +	gd->arch.tsc_base = new_base;  }  uint64_t timer_get_tsc(void) @@ -110,8 +109,8 @@ uint64_t timer_get_tsc(void)  	uint64_t time_now;  	time_now = rdtsc(); -	if (!base_value) -		base_value = time_now; +	if (!gd->arch.tsc_base) +		gd->arch.tsc_base = time_now; -	return time_now - base_value; +	return time_now - gd->arch.tsc_base;  } |