diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-21 14:28:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-21 14:28:24 -0700 |
commit | 46097f27180c7dd371c2b0391d40bb1fa36007af (patch) | |
tree | 55a202d3ba3fd24e5d4afa286cefa72ec01ebcd1 /arch/parisc/kernel/time.c | |
parent | 4ec656bdf43a13a655a8259b79dd63bc1f0b1e41 (diff) | |
parent | 3eb53b20d7bd1374598cfb1feaa081fcac0e76cd (diff) | |
download | talos-op-linux-46097f27180c7dd371c2b0391d40bb1fa36007af.tar.gz talos-op-linux-46097f27180c7dd371c2b0391d40bb1fa36007af.zip |
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
Diffstat (limited to 'arch/parisc/kernel/time.c')
-rw-r--r-- | arch/parisc/kernel/time.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index 505cf1ac5af2..4b0b963d52a7 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c @@ -221,18 +221,6 @@ static struct clocksource clocksource_cr16 = { .flags = CLOCK_SOURCE_IS_CONTINUOUS, }; -int update_cr16_clocksource(void) -{ - /* since the cr16 cycle counters are not synchronized across CPUs, - we'll check if we should switch to a safe clocksource: */ - if (clocksource_cr16.rating != 0 && num_online_cpus() > 1) { - clocksource_change_rating(&clocksource_cr16, 0); - return 1; - } - - return 0; -} - void __init start_cpu_itimer(void) { unsigned int cpu = smp_processor_id(); |