Skip to content

Commit ae14183

Browse files
committed
parisc: Fix automatic selection of cr16 clocksource
Commit 54b6680 (parisc: Add native high-resolution sched_clock() implementation) added support to use the CPU-internal cr16 counters as reliable clocksource with the help of HAVE_UNSTABLE_SCHED_CLOCK. Sadly the commit missed to remove the hack which prevented cr16 to become the default clocksource even on SMP systems. Signed-off-by: Helge Deller <deller@gmx.de> Cc: stable@vger.kernel.org # 4.7+
1 parent 6040e57 commit ae14183

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

arch/parisc/kernel/processor.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ EXPORT_SYMBOL(_parisc_requires_coherency);
5151

5252
DEFINE_PER_CPU(struct cpuinfo_parisc, cpu_data);
5353

54-
extern int update_cr16_clocksource(void); /* from time.c */
55-
5654
/*
5755
** PARISC CPU driver - claim "device" and initialize CPU data structures.
5856
**
@@ -228,12 +226,6 @@ static int processor_probe(struct parisc_device *dev)
228226
}
229227
#endif
230228

231-
/* If we've registered more than one cpu,
232-
* we'll use the jiffies clocksource since cr16
233-
* is not synchronized between CPUs.
234-
*/
235-
update_cr16_clocksource();
236-
237229
return 0;
238230
}
239231

arch/parisc/kernel/time.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,6 @@ static struct clocksource clocksource_cr16 = {
221221
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
222222
};
223223

224-
int update_cr16_clocksource(void)
225-
{
226-
/* since the cr16 cycle counters are not synchronized across CPUs,
227-
we'll check if we should switch to a safe clocksource: */
228-
if (clocksource_cr16.rating != 0 && num_online_cpus() > 1) {
229-
clocksource_change_rating(&clocksource_cr16, 0);
230-
return 1;
231-
}
232-
233-
return 0;
234-
}
235-
236224
void __init start_cpu_itimer(void)
237225
{
238226
unsigned int cpu = smp_processor_id();

0 commit comments

Comments
 (0)