瀏覽代碼

ARC: clocksource cleanups

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Vineet Gupta 10 年之前
父節點
當前提交
5b9bd17840
共有 1 個文件被更改,包括 2 次插入10 次删除
  1. 2 10
      arch/arc/kernel/time.c

+ 2 - 10
arch/arc/kernel/time.c

@@ -60,15 +60,6 @@
 
 /********** Clock Source Device *********/
 
-static bool is_usable_as_clocksource(void)
-{
-#ifdef CONFIG_SMP
-	return 0;
-#else
-	return 1;
-#endif
-}
-
 /*
  * set 32bit TIMER1 to keep counting monotonically and wraparound
  */
@@ -78,7 +69,8 @@ int arc_counter_setup(void)
 	write_aux_reg(ARC_REG_TIMER1_CNT, 0);
 	write_aux_reg(ARC_REG_TIMER1_CTRL, TIMER_CTRL_NH);
 
-	return is_usable_as_clocksource();
+	/* Not usable in SMP */
+	return !IS_ENABLED(CONFIG_SMP);
 }
 
 static cycle_t arc_counter_read(struct clocksource *cs)