]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
clocksource: arch_timer: Set dynamic irq affinity on mmio clockevent
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 6 Jan 2014 22:56:17 +0000 (14:56 -0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 11 Mar 2014 22:04:39 +0000 (23:04 +0100)
Set the CLOCK_EVT_FEAT_DYNIRQ flag on the memory mapped
clockevent so that we save power by waking up the CPU with the
next event when this timer is used in broadcast mode.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/arm_arch_timer.c

index 95fb944e15ee0579a6f437f8440ba93fe8443524..57e823c44d2ad326eeaaa788fbb67d80ba620c7d 100644 (file)
@@ -277,6 +277,7 @@ static void __arch_timer_setup(unsigned type,
                        clk->set_next_event = arch_timer_set_next_event_phys;
                }
        } else {
+               clk->features |= CLOCK_EVT_FEAT_DYNIRQ;
                clk->name = "arch_mem_timer";
                clk->rating = 400;
                clk->cpumask = cpu_all_mask;