[v1 1/9] sched/clock: broken stable to unstable transfer

2017-03-22 Thread Pavel Tatashin
When it is determined that clock is actually unstable, and we switch from stable to unstable the following function is eventually called: __clear_sched_clock_stable() In this function we set gtod_offset so the following holds true: sched_clock() + raw_offset == ktime_get_ns() + gtod_offset But

[v1 1/9] sched/clock: broken stable to unstable transfer

2017-03-22 Thread Pavel Tatashin
When it is determined that clock is actually unstable, and we switch from stable to unstable the following function is eventually called: __clear_sched_clock_stable() In this function we set gtod_offset so the following holds true: sched_clock() + raw_offset == ktime_get_ns() + gtod_offset But