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. ]

Cc: John Stultz <>
Cc: Thomas Gleixner <>
Cc: Stephen Boyd <>
Cc: Rong Chen <>
Signed-off-by: Paul E. McKenney <>
3 files changed