tmp_suning_uos_patched/arch/blackfin/mach-bf561/include/mach
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
..
anomaly.h Blackfin: update anomaly lists to latest public info 2010-08-06 12:55:46 -04:00
bf561.h Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
bfin_serial_5xx.h Blackfin: bfin_serial.h: unify heavily duplicated serial code 2011-01-10 07:18:02 -05:00
bfin_serial.h Blackfin: bfin_serial.h: unify heavily duplicated serial code 2011-01-10 07:18:02 -05:00
blackfin.h Blackfin: clean up mach header includes 2011-01-10 07:18:08 -05:00
cdefBF561.h Blackfin: drop asm/irq.h include from mach headers 2011-01-10 07:18:10 -05:00
defBF561.h Blackfin: clean up mach header includes 2011-01-10 07:18:08 -05:00
dma.h Blackfin arch: push bf561 PERIPHERAL_MAP oddity into bf561-specific code 2009-01-07 23:14:39 +08:00
gpio.h Blackfin: push gpio (port) defines into common headers 2011-01-10 07:18:06 -05:00
irq.h Blackfin: increase NR_IRQS beyond NR on-chip IRQs 2010-03-09 00:30:49 -05:00
mem_map.h Blackfin: bf561: fix mem_map.h SMP overrides 2011-01-10 07:18:13 -05:00
pll.h Blackfin: bf561: update a few more SIC_SYSCR locations 2011-01-10 07:18:10 -05:00
portmux.h Blackfin: gpio/portmux: clean up whitespace corruption 2010-08-06 12:55:51 -04:00
smp.h Blackfin: SMP: rewrite IPI handling to avoid memory allocation 2011-01-10 07:18:15 -05:00