summary refs log tree commit diff
path: root/include/ras
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-04 16:53:49 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-01-04 16:53:49 +0100
commit63a4be93937c1a6459f9d67b7afeb4e81fa64d2b (patch)
tree4aeadafeaa7fdfd3c837c37335004d9c92bf0c94 /include/ras
parentdefddeff61041dbe2d5bd5469ee48912a89b4118 (diff)
downloadlinux-63a4be93937c1a6459f9d67b7afeb4e81fa64d2b.tar.gz
fbdev: radeon: use ktime_get() for HZ calibration
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 bad clocksource.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'include/ras')
0 files changed, 0 insertions, 0 deletions