Re: [PATCH 2/2] fbdev: radeon: stop use ktime_get() for HZ calibration

2018-01-04 Thread Bartlomiej Zolnierkiewicz
On Tuesday, November 07, 2017 03:13:06 PM Arnd Bergmann wrote: > do_gettimeofday() is deprecated and a bit clumsy. This changes > radeon_probe_pll_params() over to using ktime_get() with monotonic > times. There is no need to check for negative values any more > since the monotonic clocksource cann

[PATCH 2/2] fbdev: radeon: stop use ktime_get() for HZ calibration

2017-11-07 Thread Arnd Bergmann
do_gettimeofday() is deprecated and a bit clumsy. This changes radeon_probe_pll_params() over to using ktime_get() with monotonic times. There is no need to check for negative values any more since the monotonic clocksource cannot go backwards, but I'm adding a check for zero-division in case of a