* [PATCH] clocksource: imx-gpt: remove unnecessary irq protection
@ 2018-11-05 14:15 Clément Péron
2018-11-05 14:30 ` Daniel Lezcano
0 siblings, 1 reply; 2+ messages in thread
From: Clément Péron @ 2018-11-05 14:15 UTC (permalink / raw)
To: linux-arm-kernel
shutdown and oneshot are already protected against irq interruptions
Signed-off-by: Cl?ment P?ron <peron.clem@gmail.com>
---
drivers/clocksource/timer-imx-gpt.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
index 165fbbb1c9a0..48e025e8dc82 100644
--- a/drivers/clocksource/timer-imx-gpt.c
+++ b/drivers/clocksource/timer-imx-gpt.c
@@ -198,15 +198,8 @@ static int v2_set_next_event(unsigned long evt,
static int mxc_shutdown(struct clock_event_device *ced)
{
struct imx_timer *imxtm = to_imx_timer(ced);
- unsigned long flags;
u32 tcn;
- /*
- * The timer interrupt generation is disabled at least
- * for enough time to call mxc_set_next_event()
- */
- local_irq_save(flags);
-
/* Disable interrupt in GPT module */
imxtm->gpt->gpt_irq_disable(imxtm);
@@ -221,21 +214,12 @@ static int mxc_shutdown(struct clock_event_device *ced)
printk(KERN_INFO "%s: changing mode\n", __func__);
#endif /* DEBUG */
- local_irq_restore(flags);
-
return 0;
}
static int mxc_set_oneshot(struct clock_event_device *ced)
{
struct imx_timer *imxtm = to_imx_timer(ced);
- unsigned long flags;
-
- /*
- * The timer interrupt generation is disabled at least
- * for enough time to call mxc_set_next_event()
- */
- local_irq_save(flags);
/* Disable interrupt in GPT module */
imxtm->gpt->gpt_irq_disable(imxtm);
@@ -260,7 +244,6 @@ static int mxc_set_oneshot(struct clock_event_device *ced)
* mode switching
*/
imxtm->gpt->gpt_irq_enable(imxtm);
- local_irq_restore(flags);
return 0;
}
--
2.19.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] clocksource: imx-gpt: remove unnecessary irq protection
2018-11-05 14:15 [PATCH] clocksource: imx-gpt: remove unnecessary irq protection Clément Péron
@ 2018-11-05 14:30 ` Daniel Lezcano
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Lezcano @ 2018-11-05 14:30 UTC (permalink / raw)
To: linux-arm-kernel
On 05/11/2018 15:15, Cl?ment P?ron wrote:
> shutdown and oneshot are already protected against irq interruptions
>
> Signed-off-by: Cl?ment P?ron <peron.clem@gmail.com>
> ---
Applied, thanks!
-- Daniel
--
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-05 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-05 14:15 [PATCH] clocksource: imx-gpt: remove unnecessary irq protection Clément Péron
2018-11-05 14:30 ` Daniel Lezcano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).