summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2024-06-12 11:54:31 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2024-07-03 17:49:11 +0300
commit7464c0762e96904b6bf686a4dc8b3255adf1c890 (patch)
tree693d58354ef2ba4c7079d17987e22931c35fe540 /rust/helpers/build_bug.c
parent426fa8e4fe7bb914b5977cbce453a9926bf5b2e6 (diff)
downloadlinux-7464c0762e96904b6bf686a4dc8b3255adf1c890.tar.xz
MIPS: csrc-r4k: Don't register as sched_clock if unfit
When we have more than one CPU in system, counter synchronisation overhead can lead to a scenario that sched_clock goes backward when being read from different CPUs. This is accommodated by CONFIG_HAVE_UNSTABLE_SCHED_CLOCK, but it's unavailable on 32bit kernel. We don't want to risk sched_clock correctness, so if we have multiple CPU in system and CONFIG_HAVE_UNSTABLE_SCHED_CLOCK is not set, we just don't use counter as sched_clock source. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions