提交 5b9bd178 编写于 作者: V Vineet Gupta

ARC: clocksource cleanups

Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
上级 565a9b49
...@@ -60,15 +60,6 @@ ...@@ -60,15 +60,6 @@
/********** Clock Source Device *********/ /********** 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 * set 32bit TIMER1 to keep counting monotonically and wraparound
*/ */
...@@ -78,7 +69,8 @@ int arc_counter_setup(void) ...@@ -78,7 +69,8 @@ int arc_counter_setup(void)
write_aux_reg(ARC_REG_TIMER1_CNT, 0); write_aux_reg(ARC_REG_TIMER1_CNT, 0);
write_aux_reg(ARC_REG_TIMER1_CTRL, TIMER_CTRL_NH); 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) static cycle_t arc_counter_read(struct clocksource *cs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册