summaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/time.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2015-09-08 17:49:31 +0200
committerHelge Deller <deller@gmx.de>2015-09-08 17:53:03 +0200
commit72581cecee411be2b2c00226c98e0c20aab337a2 (patch)
tree6a21d8363d89f4d47fae2fc715ad5057fd715e45 /arch/parisc/kernel/time.c
parentparisc: Use double word condition in 64bit CAS operation (diff)
downloadlinux-72581cecee411be2b2c00226c98e0c20aab337a2.tar.xz
linux-72581cecee411be2b2c00226c98e0c20aab337a2.zip
parisc: Drop CONFIG_SMP around update_cr16_clocksource()
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>
Diffstat (limited to 'arch/parisc/kernel/time.c')
-rw-r--r--arch/parisc/kernel/time.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c
index 70e105d62423..cc68a4fbce6a 100644
--- a/arch/parisc/kernel/time.c
+++ b/arch/parisc/kernel/time.c
@@ -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)
{