clocksource: Make clocksource-wdtest.c safe for slow-HZ systems

Currently, clocksource-wdtest.c sets a local JIFFIES_SHIFT macro for
operation at HZ>=67, which can cause this test suite to fail on systems
with HZ<67.  Therefore, move the HZ-based definitions of JIFFIES_SHIFT
from kernel/time/jiffies.c to kernel/time/tick-internal.h, allowing
the local JIFFIES_SHIFT macro to be removed from clocksource-wdtest.c
in favor of a properly HZ-based definition.  This in turn makes
clocksource-wdtest.c safe for slow-HZ systems.

[ paulmck: Moved JIFFIES_SHIFT from include/linux/clocksource.h. ]

Link: https://lore.kernel.org/lkml/20210812000133.GA402890@paulmck-ThinkPad-P17-Gen-1/
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Rong Chen <rong.a.chen@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
3 files changed