diff options
author | John Crispin <john@openwrt.org> | 2013-07-14 18:00:34 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-14 18:00:34 +0000 |
commit | 89c03927368852cf912e76d553bcc7671f6c16cd (patch) | |
tree | c396a709343fe323501f82c078fc93d435701e9b /target/linux/ramips/patches-3.8/0052-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch | |
parent | eb0a44917eea1b2d673d26c28df5aecbb8d77d67 (diff) | |
download | mtk-20170518-89c03927368852cf912e76d553bcc7671f6c16cd.zip mtk-20170518-89c03927368852cf912e76d553bcc7671f6c16cd.tar.gz mtk-20170518-89c03927368852cf912e76d553bcc7671f6c16cd.tar.bz2 |
ralink: drop v3.8 support
Signed-off-by: John Crispin <blogic@opewnrt.org>
SVN-Revision: 37311
Diffstat (limited to 'target/linux/ramips/patches-3.8/0052-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch')
-rw-r--r-- | target/linux/ramips/patches-3.8/0052-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/target/linux/ramips/patches-3.8/0052-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch b/target/linux/ramips/patches-3.8/0052-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch deleted file mode 100644 index 0a6ecc4..0000000 --- a/target/linux/ramips/patches-3.8/0052-MIPS-use-set_mode-to-enable-disable-the-cevt-r4k-irq.patch +++ /dev/null @@ -1,78 +0,0 @@ -From b9afea3f5cf6c2da3b88f2902c4377e9c5b22a6d Mon Sep 17 00:00:00 2001 -From: John Crispin <blogic@openwrt.org> -Date: Fri, 3 May 2013 00:04:58 +0200 -Subject: [PATCH 52/79] MIPS: use set_mode() to enable/disable the cevt-r4k - irq - -Signed-off-by: John Crispin <blogic@openwrt.org> ---- - arch/mips/kernel/cevt-r4k.c | 39 ++++++++++++++++++++++++++------------- - 1 file changed, 26 insertions(+), 13 deletions(-) - -diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c -index 7532392..afc08e4 100644 ---- a/arch/mips/kernel/cevt-r4k.c -+++ b/arch/mips/kernel/cevt-r4k.c -@@ -39,12 +39,6 @@ static int mips_next_event(unsigned long delta, - - #endif /* CONFIG_MIPS_MT_SMTC */ - --void mips_set_clock_mode(enum clock_event_mode mode, -- struct clock_event_device *evt) --{ -- /* Nothing to do ... */ --} -- - DEFINE_PER_CPU(struct clock_event_device, mips_clockevent_device); - int cp0_timer_irq_installed; - -@@ -89,6 +83,32 @@ struct irqaction c0_compare_irqaction = { - .name = "timer", - }; - -+void mips_set_clock_mode(enum clock_event_mode mode, -+ struct clock_event_device *evt) -+{ -+ switch (mode) { -+ case CLOCK_EVT_MODE_ONESHOT: -+ if (cp0_timer_irq_installed) -+ break; -+ -+ cp0_timer_irq_installed = 1; -+ -+ setup_irq(evt->irq, &c0_compare_irqaction); -+ break; -+ -+ case CLOCK_EVT_MODE_SHUTDOWN: -+ if (!cp0_timer_irq_installed) -+ break; -+ -+ cp0_timer_irq_installed = 0; -+ free_irq(evt->irq, &c0_compare_irqaction); -+ break; -+ -+ default: -+ pr_err("Unhandeled mips clock_mode\n"); -+ break; -+ } -+} - - void mips_event_handler(struct clock_event_device *dev) - { -@@ -208,13 +228,6 @@ int __cpuinit r4k_clockevent_init(void) - - clockevents_register_device(cd); - -- if (cp0_timer_irq_installed) -- return 0; -- -- cp0_timer_irq_installed = 1; -- -- setup_irq(irq, &c0_compare_irqaction); -- - return 0; - } - --- -1.7.10.4 - |