瀏覽代碼

powerpc/booke: don't reinitialize time base

For some reason long ago I decided that we should zero out the time base
when we calibrate the decrementer.  The problem is that this can be
harmful in SMP systems where the firmware has already synchronized the
time bases on the various cores.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Kumar Gala 17 年之前
父節點
當前提交
ddb107e98b
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      arch/powerpc/kernel/time.c

+ 0 - 4
arch/powerpc/kernel/time.c

@@ -742,10 +742,6 @@ void __init generic_calibrate_decr(void)
 	}
 	}
 
 
 #if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
 #if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
-	/* Set the time base to zero */
-	mtspr(SPRN_TBWL, 0);
-	mtspr(SPRN_TBWU, 0);
-
 	/* Clear any pending timer interrupts */
 	/* Clear any pending timer interrupts */
 	mtspr(SPRN_TSR, TSR_ENW | TSR_WIS | TSR_DIS | TSR_FIS);
 	mtspr(SPRN_TSR, TSR_ENW | TSR_WIS | TSR_DIS | TSR_FIS);