Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clock: initialize dummy clocksource statically
Assigning the dummy clocksource in a initcall has the problem that get_time_ns() crashes before that initcall is executed. This happens when dmesg support is enabled in conjunction with CONFIG_DEBUG_INITCALLS. In this case the dmesg code wants to have the timestamp of a log message. Solve this by setting the current clocksource to the dummy clock statically and not at runtime. This way we always have a dummy clock available. Fixes: commit 8972eb7 Author: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> Date: Fri Mar 3 13:34:02 2017 +0100 clocksource: move dummy clock source to init_clock Signed-off-by: Sascha Hauer <[email protected]>
- Loading branch information