linux/arch/mips/pmcs-msp71xx
Alex Smith 4ace6139bf MIPS: SMP: Don't increment irq_count multiple times for call function IPIs
The majority of SMP platforms handle their IPIs through do_IRQ()
which calls irq_{enter/exit}(). When a call function IPI is received,
smp_call_function_interrupt() is called which also calls
irq_{enter,exit}(), meaning irq_count is raised twice.

When tick broadcasting is used (which is implemented via a call
function IPI), this incorrectly causes all CPU idle time on the core
receiving broadcast ticks to be accounted as time spent servicing
IRQs, as account_process_tick() will account as such if irq_count is
greater than 1. This results in 100% CPU usage being reported on a
core which receives its ticks via broadcast.

This patch removes the SMP smp_call_function_interrupt() wrapper which
calls irq_{enter,exit}(). Platforms which handle their IPIs through
do_IRQ() now call generic_smp_call_function_interrupt() directly to
avoid incrementing irq_count a second time. Platforms which don't
(loongson, sgi-ip27, sibyte) call generic_smp_call_function_interrupt()
wrapped in irq_{enter,exit}().

Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10770/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2015-08-03 09:25:12 +02:00
..
Kconfig kconfig: use bool instead of boolean for type definition attributes 2015-01-07 13:08:04 +01:00
Makefile MIPS: MT: Remove SMTC support 2014-05-24 00:07:01 +02:00
msp_elb.c
msp_eth.c MIPS: MSP71xx: Remove checks for two macros 2014-05-23 15:12:39 +02:00
msp_hwbutton.c
msp_irq_cic.c MIPS: MSP71xx: Fix build error 2014-10-24 02:37:18 +02:00
msp_irq_per.c MIPS: MT: Remove SMTC support 2014-05-24 00:07:01 +02:00
msp_irq_slp.c
msp_irq.c MIPS: MSP71xx: Remove compilation error when CONFIG_MIPS_MT is present 2014-10-22 23:16:55 +02:00
msp_pci.c
msp_prom.c MIPS: Remove useless parentheses 2014-11-24 07:44:49 +01:00
msp_serial.c
msp_setup.c MIPS: MT: Remove SMTC support 2014-05-24 00:07:01 +02:00
msp_smp.c MIPS: SMP: Don't increment irq_count multiple times for call function IPIs 2015-08-03 09:25:12 +02:00
msp_time.c MIPS: Delete __cpuinit/__CPUINIT usage from MIPS code 2013-07-14 19:36:51 -04:00
msp_usb.c MIPS: MSP71xx: Remove checks for two macros 2014-05-23 15:12:39 +02:00
Platform