diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-15 12:19:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-15 12:19:12 +0000 |
commit | 6b4c038cf3f8dc333f0b7f38c7dab5a6f67f89fd (patch) | |
tree | 845d6254de0d24a51442baba05b43f6cce76366e /target/linux/generic | |
parent | d900866b1dd0e05900218aba6769195a1ffa961d (diff) | |
download | upstream-6b4c038cf3f8dc333f0b7f38c7dab5a6f67f89fd.tar.gz upstream-6b4c038cf3f8dc333f0b7f38c7dab5a6f67f89fd.tar.bz2 upstream-6b4c038cf3f8dc333f0b7f38c7dab5a6f67f89fd.zip |
kernel: fix disable_irq() on MIPS CPU IRQs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43973 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-3.14/130-mips_cpu_irq_disable.patch | 20 | ||||
-rw-r--r-- | target/linux/generic/patches-3.18/130-mips_cpu_irq_disable.patch | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.14/130-mips_cpu_irq_disable.patch b/target/linux/generic/patches-3.14/130-mips_cpu_irq_disable.patch new file mode 100644 index 0000000000..7ebbc99dba --- /dev/null +++ b/target/linux/generic/patches-3.14/130-mips_cpu_irq_disable.patch @@ -0,0 +1,20 @@ +--- a/arch/mips/kernel/irq_cpu.c ++++ b/arch/mips/kernel/irq_cpu.c +@@ -56,6 +56,8 @@ static struct irq_chip mips_cpu_irq_cont + .irq_mask_ack = mask_mips_irq, + .irq_unmask = unmask_mips_irq, + .irq_eoi = unmask_mips_irq, ++ .irq_disable = mask_mips_irq, ++ .irq_enable = unmask_mips_irq, + }; + + /* +@@ -92,6 +94,8 @@ static struct irq_chip mips_mt_cpu_irq_c + .irq_mask_ack = mips_mt_cpu_irq_ack, + .irq_unmask = unmask_mips_irq, + .irq_eoi = unmask_mips_irq, ++ .irq_disable = mask_mips_irq, ++ .irq_enable = unmask_mips_irq, + }; + + void __init mips_cpu_irq_init(void) diff --git a/target/linux/generic/patches-3.18/130-mips_cpu_irq_disable.patch b/target/linux/generic/patches-3.18/130-mips_cpu_irq_disable.patch new file mode 100644 index 0000000000..7ebbc99dba --- /dev/null +++ b/target/linux/generic/patches-3.18/130-mips_cpu_irq_disable.patch @@ -0,0 +1,20 @@ +--- a/arch/mips/kernel/irq_cpu.c ++++ b/arch/mips/kernel/irq_cpu.c +@@ -56,6 +56,8 @@ static struct irq_chip mips_cpu_irq_cont + .irq_mask_ack = mask_mips_irq, + .irq_unmask = unmask_mips_irq, + .irq_eoi = unmask_mips_irq, ++ .irq_disable = mask_mips_irq, ++ .irq_enable = unmask_mips_irq, + }; + + /* +@@ -92,6 +94,8 @@ static struct irq_chip mips_mt_cpu_irq_c + .irq_mask_ack = mips_mt_cpu_irq_ack, + .irq_unmask = unmask_mips_irq, + .irq_eoi = unmask_mips_irq, ++ .irq_disable = mask_mips_irq, ++ .irq_enable = unmask_mips_irq, + }; + + void __init mips_cpu_irq_init(void) |