clocksource/drivers/stm32: Factor out more of the clockevent code
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 8 Jan 2018 13:28:56 +0000 (14:28 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 8 Jan 2018 16:57:26 +0000 (17:57 +0100)
commit3c84e75b1e5d8406e12b533d44f54ad84d6e3bd6
treea94052febd2eb77cd8295716433d5275165a7f52
parent8e82df381b676ae5f6c93ab4a75f56d8f61babc4
clocksource/drivers/stm32: Factor out more of the clockevent code

In order to prepare the clocksource code, let's factor out the clockevent
code, split the prescaler and timer width code into separate functions.

Tested-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1515418139-23276-17-git-send-email-daniel.lezcano@linaro.org
[ Small edits. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/clocksource/timer-stm32.c