MIPS: csrc-r4k: Apply verification clocksource flags
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Wed, 12 Jun 2024 08:54:29 +0000 (09:54 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 3 Jul 2024 14:45:25 +0000 (16:45 +0200)
commit7190401fc56fb5f02ee3d04476778ab000bbaf32
treeb7c33784e4b8becbb027f734a120c16bc8dde999
parentc171186c177970d3ec22dd814f2693f1f7fc1e7d
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>
arch/mips/kernel/csrc-r4k.c