summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2018-01-04 13:02:59 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2018-01-08 12:10:02 +0100
commite0fed96f444a7db3226a8b451908932efe10e024 (patch)
tree5b365badf45627cddf03fba0a4ce7e2f56743a0d
parentb4ea743aece3b1fab8e0b28d6a32cfd37f414c36 (diff)
clocksource/drivers/stm32: Use the node name as timer name
As there are different timers on the stm32, use the node name for the timer name in order to give the indication of which timer the kernel is using. The /proc/timer_list gives all the information with the right name, otherwise we end up digging in the kernel log and /proc/interrupt to do the connection between the used timer. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Tested-by: Benjamin Gaignard <benjamin.gaignard@st.com> Acked-by: Benjamin Gaignard <benjamin.gaignard@st.com>
-rw-r--r--drivers/clocksource/timer-stm32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c
index 3e4ab0770293..14b7a2b99933 100644
--- a/drivers/clocksource/timer-stm32.c
+++ b/drivers/clocksource/timer-stm32.c
@@ -85,7 +85,7 @@ static void __init stm32_clockevent_init(struct timer_of *to)
unsigned long max_delta;
int prescaler;
- to->clkevt.name = "stm32_clockevent";
+ to->clkevt.name = to->np->full_name;
to->clkevt.features = CLOCK_EVT_FEAT_PERIODIC;
to->clkevt.set_state_shutdown = stm32_clock_event_shutdown;
to->clkevt.set_state_periodic = stm32_clock_event_set_periodic;