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

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull timer fix from Thomas Gleixner:
"A single bugfix for an init order problem in the sun4i subarch
clockevents code"

* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
clockevent: sun4i: Fix race condition in the probe code

+6 -6
+6 -6
drivers/clocksource/sun4i_timer.c
··· 182 182 /* Make sure timer is stopped before playing with interrupts */ 183 183 sun4i_clkevt_time_stop(0); 184 184 185 + sun4i_clockevent.cpumask = cpu_possible_mask; 186 + sun4i_clockevent.irq = irq; 187 + 188 + clockevents_config_and_register(&sun4i_clockevent, rate, 189 + TIMER_SYNC_TICKS, 0xffffffff); 190 + 185 191 ret = setup_irq(irq, &sun4i_timer_irq); 186 192 if (ret) 187 193 pr_warn("failed to setup irq %d\n", irq); ··· 195 189 /* Enable timer0 interrupt */ 196 190 val = readl(timer_base + TIMER_IRQ_EN_REG); 197 191 writel(val | TIMER_IRQ_EN(0), timer_base + TIMER_IRQ_EN_REG); 198 - 199 - sun4i_clockevent.cpumask = cpu_possible_mask; 200 - sun4i_clockevent.irq = irq; 201 - 202 - clockevents_config_and_register(&sun4i_clockevent, rate, 203 - TIMER_SYNC_TICKS, 0xffffffff); 204 192 } 205 193 CLOCKSOURCE_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer", 206 194 sun4i_timer_init);