浏览代码

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>
Stephen Boyd 11 年之前
父节点
当前提交
7b52ad2efa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/clocksource/arm_arch_timer.c

+ 1 - 0
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;