On Wed, 20 Jan 2016, John Stultz wrote:
> Ehrm. A more productive route in solving this might be to cap the
> cycle delta we return from timekeeping_get_delta().
>
> We already do this in the CONFIG_DEBUG_TIMEKEEPING, but adding a
> simple check it to the non-debug case should be doable w/o adding too
> much overhead to this very hot path.
>
> Something like:
> if (delta > tkr->clock->max_cycles)
> delta = tkr->clock->max_cycles;
>
> return delta;
Well, you can make CONFIG_KDB select CONFIG_DEBUG_TIMEKEEPING.
Thanks,
tglx