summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/time.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2015-03-07 16:59:38 +0530
committerVineet Gupta <vgupta@synopsys.com>2015-06-19 18:09:25 +0530
commit5b9bd1784088f5407424d43f63ef777bb898d2d5 (patch)
tree69b80f3ca7f126d94b8c2075eeb1c7e8ec13a8bd /arch/arc/kernel/time.c
parent565a9b497c5103a91027d95b9f3392c035703774 (diff)
downloadlinux-5b9bd1784088f5407424d43f63ef777bb898d2d5.tar.bz2
ARC: clocksource cleanups
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/time.c')
-rw-r--r--arch/arc/kernel/time.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/arc/kernel/time.c b/arch/arc/kernel/time.c
index 9307f87f2572..71493f75ae6b 100644
--- a/arch/arc/kernel/time.c
+++ b/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)