Commit f7886e87 authored by Steven J. Hill's avatar Steven J. Hill Committed by Ralf Baechle

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: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
Signed-off-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6024/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 14bd8c08
...@@ -75,7 +75,7 @@ extern int init_r4k_clocksource(void); ...@@ -75,7 +75,7 @@ extern int init_r4k_clocksource(void);
static inline int init_mips_clocksource(void) static inline int init_mips_clocksource(void)
{ {
#if defined(CONFIG_CSRC_R4K) && !defined(CONFIG_CSRC_GIC) #ifdef CONFIG_CSRC_R4K
return init_r4k_clocksource(); return init_r4k_clocksource();
#else #else
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment