diff options
author | Chen-Hui Zhao <chenhui.zhao@freescale.com> | 2012-11-20 18:15:18 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-03-26 23:14:53 (GMT) |
commit | 883e829d039b3471c96fa2b94c6f787290c24568 (patch) | |
tree | bf9a0afebc2f08adfd2d8bba749d3451e63d2176 | |
parent | 4c813a0a8e5deb6dcb2d19aeb43be469a7dfbf15 (diff) | |
download | linux-fsl-qoriq-883e829d039b3471c96fa2b94c6f787290c24568.tar.xz |
powerpc/85xx: do not sync time base at boot time
The bootloader have done time base sync for all cores, so skip it
at boot time of kernel.
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Change-Id: Ida675e0f687b1f8eca91f42c24e9ae11424aacaf
Reviewed-on: http://git.am.freescale.net:8181/561
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
-rw-r--r-- | arch/powerpc/platforms/85xx/smp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c index 5fa5517..31ee789 100644 --- a/arch/powerpc/platforms/85xx/smp.c +++ b/arch/powerpc/platforms/85xx/smp.c @@ -95,6 +95,10 @@ static void __cpuinit mpc85xx_give_timebase(void) { unsigned long flags; + /* only do time base sync when system is running */ + if (system_state == SYSTEM_BOOTING) + return; + local_irq_save(flags); while (!tb_req) @@ -118,6 +122,9 @@ static void __cpuinit mpc85xx_take_timebase(void) { unsigned long flags; + if (system_state == SYSTEM_BOOTING) + return; + local_irq_save(flags); tb_req = 1; |