Skip to content
Commit cd6d95d8 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

clocksource: prevent selection of low resolution clocksourse also for nohz=on

commit 3f68535a

 (clocksource: sanity check sysfs clocksource
changes) prevents selection of non high resolution capable
clocksources when high resolution mode is active, but did not take
into account that the same rules apply for highres=off nohz=on.

Check the tick device mode instead of hrtimer_hres_active() to verify
whether the system needs to be protected from a switch to jiffies or
other non highres capable clock sources.

Reported-by: default avatarLuming Yu <luming.yu@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 3f68535a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment