MIPS: csrc-r4k: Apply verification clocksource flags
CP0 counter suffers from various problems like SMP sync, behaviour on wait. Set CLOCK_SOURCE_MUST_VERIFY and CLOCK_SOURCE_VERIFY_PERCPU, as what x86 did to TSC, to let kernel test it before use. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
c171186c17
commit
7190401fc5
@ -21,7 +21,9 @@ static struct clocksource clocksource_mips = {
|
|||||||
.name = "MIPS",
|
.name = "MIPS",
|
||||||
.read = c0_hpt_read,
|
.read = c0_hpt_read,
|
||||||
.mask = CLOCKSOURCE_MASK(32),
|
.mask = CLOCKSOURCE_MASK(32),
|
||||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
.flags = CLOCK_SOURCE_IS_CONTINUOUS |
|
||||||
|
CLOCK_SOURCE_MUST_VERIFY |
|
||||||
|
CLOCK_SOURCE_VERIFY_PERCPU,
|
||||||
};
|
};
|
||||||
|
|
||||||
static u64 __maybe_unused notrace r4k_read_sched_clock(void)
|
static u64 __maybe_unused notrace r4k_read_sched_clock(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user