diff options
| author | Paul E. McKenney <[email protected]> | 2021-08-12 16:31:28 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2021-08-28 15:01:32 +0000 |
| commit | d25a025201ed98f4b93775e0999a3f2135702106 (patch) | |
| tree | 2fcc4adf70cf9f897619f188db2dc97392667139 /scripts/gcc-plugins | |
| parent | Merge tag 'timers-v5.15' of https://git.linaro.org/people/daniel.lezcano/linu... (diff) | |
| download | kernel-d25a025201ed98f4b93775e0999a3f2135702106.tar.gz kernel-d25a025201ed98f4b93775e0999a3f2135702106.zip | |
clocksource: Make clocksource watchdog test safe for slow-HZ systems
The clocksource watchdog test sets a local JIFFIES_SHIFT macro and assumes
that HZ is >= 100. For smaller HZ values this shift value is too large and
causes undefined behaviour.
Move the HZ-based definitions of JIFFIES_SHIFT from kernel/time/jiffies.c
to kernel/time/tick-internal.h so the clocksource watchdog test can utilize
them, which makes it work correctly with all HZ values.
[ tglx: Resolved conflicts and massaged changelog ]
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/lkml/20210812000133.GA402890@paulmck-ThinkPad-P17-Gen-1/
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions
