aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-imx-gpt.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-10-20 06:37:45 -0400
committerThomas Gleixner <tglx@linutronix.de>2015-10-20 06:37:45 -0400
commit3bc2159faf897bab51e4f1144b525d21823832a6 (patch)
tree97e28296005957f4ae15b83ae0d5998ebb9f4dcf /drivers/clocksource/timer-imx-gpt.c
parentb2c280bdd6ea31be66c9b6a666e71daa49beef75 (diff)
parentcb0f2538039c65f2bb64a9d427dbe9dd7d0f71a6 (diff)
Merge branch 'clockevents/4.4' of http://git.linaro.org/people/daniel.lezcano/linux into timers/core
clockevent updates from Daniel Lezcano: - Remove unneeded memset in em_sti, sh_cmt and h8300 because there are already zeroed by a kzalloc (Alexey Klimov) - Optimize code by replacing this_cpu_ptr by container_of on the exynos_mct (Alexey Klimov) - Get immune from a spurious interrupt when enabling the mtk_timer (Daniel Lezcano) - Use the dynamic irq affinity to optimize wakeup and useless IPI timer on the imx timer (Lucas Stach) - Add new timer for Tango SoCs (Marc Gonzalez) - Implement the timer delay for armada-370-xp (Russell King) - Use GPT as clock source (Yingjoe Chen)
Diffstat (limited to 'drivers/clocksource/timer-imx-gpt.c')
-rw-r--r--drivers/clocksource/timer-imx-gpt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
index 839aba92fc39..99ec96769dda 100644
--- a/drivers/clocksource/timer-imx-gpt.c
+++ b/drivers/clocksource/timer-imx-gpt.c
@@ -305,13 +305,14 @@ static int __init mxc_clockevent_init(struct imx_timer *imxtm)
305 struct irqaction *act = &imxtm->act; 305 struct irqaction *act = &imxtm->act;
306 306
307 ced->name = "mxc_timer1"; 307 ced->name = "mxc_timer1";
308 ced->features = CLOCK_EVT_FEAT_ONESHOT; 308 ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_DYNIRQ;
309 ced->set_state_shutdown = mxc_shutdown; 309 ced->set_state_shutdown = mxc_shutdown;
310 ced->set_state_oneshot = mxc_set_oneshot; 310 ced->set_state_oneshot = mxc_set_oneshot;
311 ced->tick_resume = mxc_shutdown; 311 ced->tick_resume = mxc_shutdown;
312 ced->set_next_event = imxtm->gpt->set_next_event; 312 ced->set_next_event = imxtm->gpt->set_next_event;
313 ced->rating = 200; 313 ced->rating = 200;
314 ced->cpumask = cpumask_of(0); 314 ced->cpumask = cpumask_of(0);
315 ced->irq = imxtm->irq;
315 clockevents_config_and_register(ced, clk_get_rate(imxtm->clk_per), 316 clockevents_config_and_register(ced, clk_get_rate(imxtm->clk_per),
316 0xff, 0xfffffffe); 317 0xff, 0xfffffffe);
317 318