diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2015-04-03 23:32:08 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-08 01:10:45 +0200 |
commit | f02cf4691e19ab61d4415b2fbfeb64aa8a93757e (patch) | |
tree | 0fcde09a376f7fe5984aed2d9908592471156eea /arch/mips/dec/int-handler.S | |
parent | 7aecd5ca80d1c08f882a5357ddae8c677c7fd1af (diff) | |
download | op-kernel-dev-f02cf4691e19ab61d4415b2fbfeb64aa8a93757e.zip op-kernel-dev-f02cf4691e19ab61d4415b2fbfeb64aa8a93757e.tar.gz |
MIPS: DEC: Implement FPU interrupt counter
Implement a cheap way to count FPU interrupts for R2k/R3k DECstation
systems. Do this manually in handcoded assembly, rather than calling
`kstat_incr_irq_this_cpu' that would require setting up a stack frame
and a lot of redirection. This is not going to be a problem because the
FPU interrupt is local to the CPU and also there is one CPU only anyway.
So at bootstrap determine the address of the correct location within
`struct irq_desc', and then only refer to it directly in the interrupt
handler.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9713/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/dec/int-handler.S')
-rw-r--r-- | arch/mips/dec/int-handler.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/dec/int-handler.S b/arch/mips/dec/int-handler.S index 41a2fa1..8c6f508 100644 --- a/arch/mips/dec/int-handler.S +++ b/arch/mips/dec/int-handler.S @@ -267,8 +267,13 @@ handle_it: #ifdef CONFIG_32BIT fpu: + lw t0,fpu_kstat_irq + nop + lw t1,(t0) + nop + addu t1,1 j handle_fpe_int - nop + sw t1,(t0) #endif spurious: |