Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource/drivers/imx-gpt: Remove unnecessary irq protection

shutdown and oneshot are already protected against irq interruptions

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Clément Péron and committed by
Daniel Lezcano
ec3372f2 df181e38

-17
-17
drivers/clocksource/timer-imx-gpt.c
··· 202 202 static int mxc_shutdown(struct clock_event_device *ced) 203 203 { 204 204 struct imx_timer *imxtm = to_imx_timer(ced); 205 - unsigned long flags; 206 205 u32 tcn; 207 - 208 - /* 209 - * The timer interrupt generation is disabled at least 210 - * for enough time to call mxc_set_next_event() 211 - */ 212 - local_irq_save(flags); 213 206 214 207 /* Disable interrupt in GPT module */ 215 208 imxtm->gpt->gpt_irq_disable(imxtm); ··· 218 225 printk(KERN_INFO "%s: changing mode\n", __func__); 219 226 #endif /* DEBUG */ 220 227 221 - local_irq_restore(flags); 222 - 223 228 return 0; 224 229 } 225 230 226 231 static int mxc_set_oneshot(struct clock_event_device *ced) 227 232 { 228 233 struct imx_timer *imxtm = to_imx_timer(ced); 229 - unsigned long flags; 230 - 231 - /* 232 - * The timer interrupt generation is disabled at least 233 - * for enough time to call mxc_set_next_event() 234 - */ 235 - local_irq_save(flags); 236 234 237 235 /* Disable interrupt in GPT module */ 238 236 imxtm->gpt->gpt_irq_disable(imxtm); ··· 248 264 * mode switching 249 265 */ 250 266 imxtm->gpt->gpt_irq_enable(imxtm); 251 - local_irq_restore(flags); 252 267 253 268 return 0; 254 269 }