tmp_suning_uos_patched/arch/blackfin/mach-bf561
Yi Li 73a400646b Blackfin: SMP: rewrite IPI handling to avoid memory allocation
Currently, sending an interprocessor interrupt (IPI) requires building up
a message dynamically which means memory allocation.  But often times, we
will want to send an IPI in low level contexts where allocation is not
possible which may lead to a panic().  So create a per-cpu static array
for the message queue and use that instead.

Further, while we have two supplemental interrupts, we are currently only
using one of them.  So use the second one for the most common IPI message
of all -- smp_send_reschedule().  This avoids ugly contention for locks
which in turn would require an IPI message ...

In general, this improves SMP performance, and in some cases allows the
SMP port to work in places it wouldn't before.  Such as the PREEMPT_RT
state where the slab is protected by a per-cpu spin lock.  If the slab
kmalloc/kfree were to put the task to sleep, and that task was actually
the IPI handler, then the system falls down yet again.

After running some various stress tests on the system, the static limit
of 5 messages seems to work.  On the off chance even this overflows, we
simply panic(), and we can review that scenario to see if the limit needs
to be increased a bit more.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-10 07:18:15 -05:00
..
boards Blackfin: i2c-gpio boards: use GPIO_PF# defines 2010-10-22 03:48:54 -04:00
include/mach Blackfin: SMP: rewrite IPI handling to avoid memory allocation 2011-01-10 07:18:15 -05:00
atomic.S Blackfin: work around testset anomaly 05000477 2009-11-25 02:35:39 -05:00
coreb.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin 2010-10-22 21:12:27 -07:00
dma.c Blackfin: dma: constify MMR pointer array 2011-01-10 07:18:05 -05:00
hotplug.c Blackfin: SMP: fix hotplug building after irq header shuffle 2011-01-10 07:10:13 -05:00
ints-priority.c Blackfin: bf561: rewrite SICA_xxx to just SIC_xxx 2010-10-22 16:30:02 -04:00
Kconfig Blackfin: add support for gptimer0 as a tick source 2009-06-12 06:11:37 -04:00
Makefile Blackfin: SMP: add PM/CPU hotplug support 2010-03-09 00:30:48 -05:00
secondary.S Blackfin: SMP: add PM/CPU hotplug support 2010-03-09 00:30:48 -05:00
smp.c Blackfin: SMP: rewrite IPI handling to avoid memory allocation 2011-01-10 07:18:15 -05:00