UPSTREAM: clocksource/drivers/rockchip: Add the dynamic irq flag to the timer
authorHuang, Tao <huangtao@rock-chips.com>
Thu, 16 Jun 2016 13:57:53 +0000 (15:57 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 22 Jun 2016 11:54:13 +0000 (19:54 +0800)
commit37a084a635faaf9e0efc83f2ee6807d9453e29be
tree60f85328f7ffdd314f9baa063d6ba9a3de6029ba
parent142baf7d610b0951d00f592ac82b04802f4ae977
UPSTREAM: clocksource/drivers/rockchip: Add the dynamic irq flag to the timer

The rockchip timer is a broadcast timer. Add the CLOCK_EVT_FEAT_DYNIRQ flag
and set the cpumask to all possible cpus to save power by avoiding
unnecessary wakeups and IPIs.

BUG=chrome-os-partner:54522
TEST=Tested on gru, cat /proc/interrupts |grep timer

Change-Id: Ic7de570f35921a292e4687c2bcf408b37334f781
Signed-off-by: Huang Tao <huangtao@rock-chips.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Heiko Stuebner <heiko@sntech.de>
Tested-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
(cherry picked from git.linaro.org/people/daniel.lezcano/linux.git clockevents/next
 commit 11932c2ac6f8c0f20f12a38569a36f0d1b5cfd6b)
Reviewed-on: https://chromium-review.googlesource.com/353976
Reviewed-by: Douglas Anderson <dianders@chromium.org>
drivers/clocksource/rockchip_timer.c