Skip to content

Commit 46097f2

Browse files
committed
Merge branch 'parisc-4.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull two parisc fixes from Helge Deller: "The first patch ensures that the high-res cr16 clocksource (which was added in kernel 4.7) gets choosen as default clocksource for parisc. The second patch moves the #define of EREFUSED down inside errno.h and thus unbreaks building the gccgo compiler" * 'parisc-4.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Fix order of EREFUSED define in errno.h parisc: Fix automatic selection of cr16 clocksource
2 parents 4ec656b + 3eb53b2 commit 46097f2

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

arch/parisc/include/uapi/asm/errno.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@
9797
#define ENOTCONN 235 /* Transport endpoint is not connected */
9898
#define ESHUTDOWN 236 /* Cannot send after transport endpoint shutdown */
9999
#define ETOOMANYREFS 237 /* Too many references: cannot splice */
100-
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
101100
#define ETIMEDOUT 238 /* Connection timed out */
102101
#define ECONNREFUSED 239 /* Connection refused */
103-
#define EREMOTERELEASE 240 /* Remote peer released connection */
102+
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
103+
#define EREMOTERELEASE 240 /* Remote peer released connection */
104104
#define EHOSTDOWN 241 /* Host is down */
105105
#define EHOSTUNREACH 242 /* No route to host */
106106

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)