linux/arch/mips/lantiq
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
..
falcon MIPS: lantiq: add missing spi clock on falcon SoC 2014-11-24 07:45:18 +01:00
xway MIPS: lantiq: xway: drop owner assignment from platform_drivers 2015-04-01 17:21:54 +02:00
clk.c Merge branch 'mips-next-3.9' of git://git.linux-mips.org/pub/scm/john/linux-john into mips-for-linux-next 2013-02-21 12:51:33 +01:00
clk.h MIPS: lantiq: adds static clock for PP32 2013-02-17 00:15:17 +01:00
early_printk.c MIPS: lantiq: fix early printk 2012-05-15 17:49:22 +02:00
irq.c MIPS: SMP: Don't increment irq_count multiple times for call function IPIs 2015-08-03 09:25:12 +02:00
Kconfig MIPS: Lantiq: Move device-trees to arch/mips/boot/dts/ 2014-09-22 13:35:49 +02:00
Makefile MIPS: Lantiq: Move device-trees to arch/mips/boot/dts/ 2014-09-22 13:35:49 +02:00
Platform MIPS: lantiq: implement support for FALCON soc 2012-05-21 14:31:55 +01:00
prom.c MIPS: mark prom_free_prom_memory() everywhere with __init 2015-04-01 17:21:58 +02:00
prom.h of/fdt: consolidate built-in dtb section variables 2014-04-30 00:59:13 -05:00