diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 15:50:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 15:50:54 -0400 |
commit | bfaf245022b4b8661af2e35f467cf0e91943c24c (patch) | |
tree | b5a6ee49a047557a791eb897c8c9545a155e36b7 /arch/mips/dec/setup.c | |
parent | 96d928ed75c4ba4253e82910a697ec7b06ace8b4 (diff) | |
parent | 3e20a26b02bd4f24945c87407df51948dd488620 (diff) |
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS updates from Ralf Baechle:
"This is the main pull request for MIPS for Linux 4.1. Most
noteworthy:
- Add more Octeon-optimized crypto functions
- Octeon crypto preemption and locking fixes
- Little endian support for Octeon
- Use correct CSR to soft reset Octeons
- Support LEDs on the Octeon-based DSR-1000N
- Fix PCI interrupt mapping for the Octeon-based DSR-1000N
- Mark prom_free_prom_memory() as __init for a number of systems
- Support for Imagination's Pistachio SOC. This includes arch and
CLK bits. I'd like to merge pinctrl bits later
- Improve parallelism of csum_partial for certain pipelines
- Organize DTB files in subdirs like other architectures
- Implement read_sched_clock for all MIPS platforms other than
Octeon
- Massive series of 38 fixes and cleanups for the FPU emulator /
kernel
- Further FPU remulator work to support new features. This sits on a
separate branch which also has been pulled into the 4.1 KVM branch
- Clean up and fixes for the SEAD3 eval board; remove unused file
- Various updates for Netlogic platforms
- A number of small updates for Loongson 3 platforms
- Increase the memory limit for ATH79 platforms to 256MB
- A fair number of fixes and updates for BCM47xx platforms
- Finish the implementation of XPA support
- MIPS FDC support. No, not floppy controller but Fast Debug Channel :)
- Detect the R16000 used in SGI legacy platforms
- Fix Kconfig dependencies for the SSB bus support"
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (265 commits)
MIPS: Makefile: Fix MIPS ASE detection code
MIPS: asm: elf: Set O32 default FPU flags
MIPS: BCM47XX: Fix detecting Microsoft MN-700 & Asus WL500G
MIPS: Kconfig: Disable SMP/CPS for 64-bit
MIPS: Hibernate: flush TLB entries earlier
MIPS: smp-cps: cpu_set FPU mask if FPU present
MIPS: lose_fpu(): Disable FPU when MSA enabled
MIPS: ralink: add missing symbol for RALINK_ILL_ACC
MIPS: ralink: Fix bad config symbol in PCI makefile.
SSB: fix Kconfig dependencies
MIPS: Malta: Detect and fix bad memsize values
Revert "MIPS: Avoid pipeline stalls on some MIPS32R2 cores."
MIPS: Octeon: Delete override of cpu_has_mips_r2_exec_hazard.
MIPS: Fix cpu_has_mips_r2_exec_hazard.
MIPS: kernel: entry.S: Set correct ISA level for mips_ihb
MIPS: asm: spinlock: Fix addiu instruction for R10000_LLSC_WAR case
MIPS: r4kcache: Use correct base register for MIPS R6 cache flushes
MIPS: Kconfig: Fix typo for the r2-to-r6 emulator kernel parameter
MIPS: unaligned: Fix regular load/store instruction emulation for EVA
MIPS: unaligned: Surround load/store macros in do {} while statements
...
Diffstat (limited to 'arch/mips/dec/setup.c')
-rw-r--r-- | arch/mips/dec/setup.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index 41bbffd9cc0e..a0b8943c8f11 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c | |||
@@ -12,13 +12,15 @@ | |||
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/interrupt.h> | 13 | #include <linux/interrupt.h> |
14 | #include <linux/ioport.h> | 14 | #include <linux/ioport.h> |
15 | #include <linux/irq.h> | ||
16 | #include <linux/irqnr.h> | ||
15 | #include <linux/module.h> | 17 | #include <linux/module.h> |
16 | #include <linux/param.h> | 18 | #include <linux/param.h> |
19 | #include <linux/percpu-defs.h> | ||
17 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
18 | #include <linux/spinlock.h> | 21 | #include <linux/spinlock.h> |
19 | #include <linux/types.h> | 22 | #include <linux/types.h> |
20 | #include <linux/pm.h> | 23 | #include <linux/pm.h> |
21 | #include <linux/irq.h> | ||
22 | 24 | ||
23 | #include <asm/bootinfo.h> | 25 | #include <asm/bootinfo.h> |
24 | #include <asm/cpu.h> | 26 | #include <asm/cpu.h> |
@@ -98,6 +100,7 @@ int_ptr asic_mask_nr_tbl[DEC_MAX_ASIC_INTS][2] = { | |||
98 | { { .i = ~0 }, { .p = asic_intr_unimplemented } }, | 100 | { { .i = ~0 }, { .p = asic_intr_unimplemented } }, |
99 | }; | 101 | }; |
100 | int cpu_fpu_mask = DEC_CPU_IRQ_MASK(DEC_CPU_INR_FPU); | 102 | int cpu_fpu_mask = DEC_CPU_IRQ_MASK(DEC_CPU_INR_FPU); |
103 | int *fpu_kstat_irq; | ||
101 | 104 | ||
102 | static struct irqaction ioirq = { | 105 | static struct irqaction ioirq = { |
103 | .handler = no_action, | 106 | .handler = no_action, |
@@ -755,8 +758,15 @@ void __init arch_init_irq(void) | |||
755 | dec_interrupt[DEC_IRQ_HALT] = -1; | 758 | dec_interrupt[DEC_IRQ_HALT] = -1; |
756 | 759 | ||
757 | /* Register board interrupts: FPU and cascade. */ | 760 | /* Register board interrupts: FPU and cascade. */ |
758 | if (dec_interrupt[DEC_IRQ_FPU] >= 0) | 761 | if (dec_interrupt[DEC_IRQ_FPU] >= 0 && cpu_has_fpu) { |
759 | setup_irq(dec_interrupt[DEC_IRQ_FPU], &fpuirq); | 762 | struct irq_desc *desc_fpu; |
763 | int irq_fpu; | ||
764 | |||
765 | irq_fpu = dec_interrupt[DEC_IRQ_FPU]; | ||
766 | setup_irq(irq_fpu, &fpuirq); | ||
767 | desc_fpu = irq_to_desc(irq_fpu); | ||
768 | fpu_kstat_irq = this_cpu_ptr(desc_fpu->kstat_irqs); | ||
769 | } | ||
760 | if (dec_interrupt[DEC_IRQ_CASCADE] >= 0) | 770 | if (dec_interrupt[DEC_IRQ_CASCADE] >= 0) |
761 | setup_irq(dec_interrupt[DEC_IRQ_CASCADE], &ioirq); | 771 | setup_irq(dec_interrupt[DEC_IRQ_CASCADE], &ioirq); |
762 | 772 | ||