Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Always register R4K clock when selected

Always register the R4K clocksource when CONFIG_CSRC_R4K is selected,
regardless of selected support for other clocksources. The kernel will
select the best clocksource based on their ratings, making it safe to
register R4K unconditionally and use it as a fallback should the
kernel be run on a system where other selected clocksources are
inoperable.

Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6024/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Steven J. Hill and committed by
Ralf Baechle
f7886e87 14bd8c08

+1 -1
+1 -1
arch/mips/include/asm/time.h
··· 75 75 76 76 static inline int init_mips_clocksource(void) 77 77 { 78 - #if defined(CONFIG_CSRC_R4K) && !defined(CONFIG_CSRC_GIC) 78 + #ifdef CONFIG_CSRC_R4K 79 79 return init_r4k_clocksource(); 80 80 #else 81 81 return 0;