summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd2014-01-06 23:56:17 +0100
committerDaniel Lezcano2014-03-11 23:04:39 +0100
commit7b52ad2efa4926ca7f399e5e63cf9a587396cd87 (patch)
tree2259c10a306302d4aaea256701fc480e7f839405
parentMerge branch 'fortglx/3.15/time' of git://git.linaro.org/people/john.stultz/l... (diff)
downloadkernel-qcow2-linux-7b52ad2efa4926ca7f399e5e63cf9a587396cd87.tar.gz
kernel-qcow2-linux-7b52ad2efa4926ca7f399e5e63cf9a587396cd87.tar.xz
kernel-qcow2-linux-7b52ad2efa4926ca7f399e5e63cf9a587396cd87.zip
clocksource: arch_timer: Set dynamic irq affinity on mmio clockevent
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>
-rw-r--r--drivers/clocksource/arm_arch_timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index 95fb944e15ee..57e823c44d2a 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -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;