parisc: Drop CONFIG_SMP around update_cr16_clocksource()
authorHelge Deller <deller@gmx.de>
Tue, 8 Sep 2015 15:49:31 +0000 (17:49 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 8 Sep 2015 15:53:03 +0000 (17:53 +0200)
No need to use CONFIG_SMP around update_cr16_clocksource(). It checks for
num_online_cpus() beeing greater than 1, which is always 1 in UP builds.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/time.c

index 70e105d..cc68a4f 100644 (file)
@@ -202,7 +202,6 @@ static struct clocksource clocksource_cr16 = {
        .flags                  = CLOCK_SOURCE_IS_CONTINUOUS,
 };
 
-#ifdef CONFIG_SMP
 int update_cr16_clocksource(void)
 {
        /* since the cr16 cycle counters are not synchronized across CPUs,
@@ -214,12 +213,6 @@ int update_cr16_clocksource(void)
 
        return 0;
 }
-#else
-int update_cr16_clocksource(void)
-{
-       return 0; /* no change */
-}
-#endif /*CONFIG_SMP*/
 
 void __init start_cpu_itimer(void)
 {