diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-18 22:38:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-18 22:38:03 +0000 |
commit | 8ecfa0e773f3aec21ab793e4f5588a2c4347ebb9 (patch) | |
tree | dffa5dd7d3c237096c68edaaa52b6ed0da17d3c9 /target/linux/cns3xxx/patches-3.18/045-twd_base.patch | |
parent | f366dc25d3c63e0faea2f76f55aa8d2141cf9778 (diff) | |
download | mtk-20170518-8ecfa0e773f3aec21ab793e4f5588a2c4347ebb9.zip mtk-20170518-8ecfa0e773f3aec21ab793e4f5588a2c4347ebb9.tar.gz mtk-20170518-8ecfa0e773f3aec21ab793e4f5588a2c4347ebb9.tar.bz2 |
cns3xxx: fix adding twd local timers
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48331
Diffstat (limited to 'target/linux/cns3xxx/patches-3.18/045-twd_base.patch')
-rw-r--r-- | target/linux/cns3xxx/patches-3.18/045-twd_base.patch | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/cns3xxx/patches-3.18/045-twd_base.patch b/target/linux/cns3xxx/patches-3.18/045-twd_base.patch index f61b8ed..a265f9c 100644 --- a/target/linux/cns3xxx/patches-3.18/045-twd_base.patch +++ b/target/linux/cns3xxx/patches-3.18/045-twd_base.patch @@ -17,25 +17,23 @@ static struct map_desc cns3xxx_io_desc[] __initdata = { { .virtual = CNS3XXX_TC11MP_SCU_BASE_VIRT, -@@ -191,6 +194,17 @@ static struct irqaction cns3xxx_timer_ir +@@ -191,6 +194,15 @@ static struct irqaction cns3xxx_timer_ir .handler = cns3xxx_timer_interrupt, }; +static void __init cns3xxx_init_twd(void) +{ -+#ifdef CONFIG_LOCAL_TIMERS + static DEFINE_TWD_LOCAL_TIMER(cns3xx_twd_local_timer, + CNS3XXX_TC11MP_TWD_BASE, + IRQ_LOCALTIMER); + + twd_local_timer_register(&cns3xx_twd_local_timer); -+#endif +} + /* * Set up the clock source and clock events devices */ -@@ -244,6 +258,7 @@ static void __init __cns3xxx_timer_init( +@@ -244,6 +256,7 @@ static void __init __cns3xxx_timer_init( setup_irq(timer_irq, &cns3xxx_timer_irq); cns3xxx_clockevents_init(timer_irq); |