sh: allow clocksource drivers to register sched_clock backends
authorRich Felker <dalias@libc.org>
Thu, 26 May 2016 22:18:52 +0000 (22:18 +0000)
committerRich Felker <dalias@libc.org>
Sun, 31 Jul 2016 03:33:32 +0000 (03:33 +0000)
There is no arch-specific sched_clock implementation for sh, resulting
in use of the old default jiffies-based implementation. Instead, use
the modern generic sched_clock framework so that drivers can register
better backends.

Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/Kconfig

index e6d88f9e978a3e3404233c280a955fac405c324a..df6339d7bf72fbff5a085ea675e202793625ba04 100644 (file)
@@ -38,6 +38,7 @@ config SUPERH
        select GENERIC_IDLE_POLL_SETUP
        select GENERIC_CLOCKEVENTS
        select GENERIC_CMOS_UPDATE if SH_SH03 || SH_DREAMCAST
+       select GENERIC_SCHED_CLOCK
        select GENERIC_STRNCPY_FROM_USER
        select GENERIC_STRNLEN_USER
        select HAVE_MOD_ARCH_SPECIFIC if DWARF_UNWINDER