]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: Set ->min_delta_ticks and ->max_delta_ticks for timer
authorNicolai Stange <nicstange@gmail.com>
Thu, 30 Mar 2017 19:45:28 +0000 (21:45 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 29 May 2017 09:02:43 +0000 (11:02 +0200)
commitbb26081a98d3db2fde37ff57f8276266b6158471
tree73e50893c3731559e059c619427d64cba8325099
parente56751c961eaf232f121025c29af94ab3d64feb2
microblaze: Set ->min_delta_ticks and ->max_delta_ticks for timer

In preparation for making the clockevents core NTP correction aware,
all clockevent device drivers must set ->min_delta_ticks and
->max_delta_ticks rather than ->min_delta_ns and ->max_delta_ns: a
clockevent device's rate is going to change dynamically and thus, the
ratio of ns to ticks ceases to stay invariant.

Make the microblaze arch's clockevent driver initialize these fields
properly.

This patch alone doesn't introduce any change in functionality as the
clockevents core still looks exclusively at the (untouched) ->min_delta_ns
and ->max_delta_ns. As soon as this has changed, a followup patch will
purge the initialization of ->min_delta_ns and ->max_delta_ns from this
driver.

Signed-off-by: Nicolai Stange <nicstange@gmail.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/kernel/timer.c