]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARC: clocksource cleanups
authorVineet Gupta <vgupta@synopsys.com>
Sat, 7 Mar 2015 11:29:38 +0000 (16:59 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 19 Jun 2015 12:39:25 +0000 (18:09 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/time.c

index 9307f87f25728e63229e7b80d69b739c3cbea59b..71493f75ae6bd61e3418234e76caf9f8579e3d12 100644 (file)
 
 /********** 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)