linux-stable-rt/arch/mips/kernel
David Daney bba9076058 MIPS: Crazy spinlock speed test.
This is just a test program for raw_spinlocks.  The main reason I
wrote it is to validate my spinlock changes that I sent in a previous
patch.

To use it enable CONFIG_DEBUG_FS and CONFIG_SPINLOCK_TEST then at run
time do:

# mount -t debugfs none /sys/kernel/debug/
# cat /sys/kernel/debug/mips/spin_single
# cat /sys/kernel/debug/mips/spin_multi

On my 600MHz octeon cn5860 (16 CPUs) I get

		spin_single	spin_multi
base		106885		247941
spinlock_patch	75194		219465

This shows that for uncontended locks the spinlock patch gives 41%
improvement and for contended locks 12% improvement (1/time).

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/969/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-02-27 12:53:42 +01:00
..
cpufreq MIPS: Loongson 2F: Add CPU frequency scaling support 2009-12-17 01:57:20 +00:00
.gitignore
8250-platform.c
Makefile MIPS: Crazy spinlock speed test. 2010-02-27 12:53:42 +01:00
asm-offsets.c MIPS: Two-level pagetables for 64-bit kernels with 64KB pages. 2010-02-27 12:53:03 +01:00
binfmt_elfn32.c
binfmt_elfo32.c
branch.c
cevt-bcm1480.c
cevt-ds1287.c
cevt-gt641xx.c MIPS: GT641xx: Convert timer lock to raw spinlock. 2010-02-27 12:53:37 +01:00
cevt-r4k.c MIPS: PowerTV: Fix support for timer interrupts with > 64 external IRQs 2010-01-28 00:03:31 +01:00
cevt-sb1250.c
cevt-smtc.c
cevt-txx9.c
cpu-bugs64.c
cpu-probe.c MIPS: Give Octeon+ CPUs their own cputype. 2010-02-27 12:53:26 +01:00
csrc-bcm1480.c
csrc-ioasic.c
csrc-powertv.c MIPS: PowerTV: Base files for Cisco PowerTV platform 2009-12-17 01:57:17 +00:00
csrc-r4k.c
csrc-sb1250.c
early_printk.c
entry.S
ftrace.c MIPS: Loongson: Change the Email address of Wu Zhangjin 2010-02-27 12:53:12 +01:00
genex.S
gpio_txx9.c
head.S
i8253.c
i8259.c MIPS: i8259: Convert IRQ controller lock to raw spinlock. 2010-02-27 12:53:38 +01:00
init_task.c
irq-gic.c
irq-gt641xx.c MIPS: GT641xx: Convert IRQ controller lock to raw spinlock. 2010-02-27 12:53:31 +01:00
irq-msc01.c
irq-rm7000.c
irq-rm9000.c
irq.c MIPS: Tracing: Add IRQENTRY_EXIT section for MIPS 2009-12-17 01:57:24 +00:00
irq_cpu.c
irq_txx9.c
kgdb.c
kspd.c
linux32.c MIPS: Don't include <linux/smp_lock.h> unnecessarily. 2010-02-27 12:52:57 +01:00
machine_kexec.c
mcount.S MIPS: Loongson: Change the Email address of Wu Zhangjin 2010-02-27 12:53:12 +01:00
mips-mt-fpaff.c
mips-mt.c
mips_ksyms.c MIPS: Tracing: Add static function tracer support for MIPS 2009-12-17 01:57:21 +00:00
module.c
octeon_switch.S MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
proc.c
process.c
ptrace.c
ptrace32.c
r4k_fpu.S
r4k_switch.S
r2300_fpu.S
r2300_switch.S
r6000_fpu.S
relocate_kernel.S
reset.c
rtlx.c MIPS: Don't include <linux/smp_lock.h> unnecessarily. 2010-02-27 12:52:57 +01:00
scall32-o32.S
scall64-64.S
scall64-n32.S
scall64-o32.S
setup.c MIPS: Fix and enhance built-in kernel command line 2009-12-17 01:57:35 +00:00
signal-common.h
signal.c MIPS: Cleanup signal code initialization 2009-12-17 01:57:32 +00:00
signal32.c MIPS: Cleanup signal code initialization 2009-12-17 01:57:32 +00:00
signal_n32.c
smp-cmp.c
smp-mt.c
smp-up.c
smp.c MIPS: Tracing: Add IRQENTRY_EXIT section for MIPS 2009-12-17 01:57:24 +00:00
smtc-asm.S
smtc-proc.c
smtc.c MIPS: Tracing: Add IRQENTRY_EXIT section for MIPS 2009-12-17 01:57:24 +00:00
spinlock_test.c MIPS: Crazy spinlock speed test. 2010-02-27 12:53:42 +01:00
spram.c
stacktrace.c
sync-r4k.c
syscall.c
time.c
topology.c
traps.c MIPS: Deal with larger physical offsets 2010-02-27 12:53:19 +01:00
unaligned.c MIPS: Modularize COP2 handling 2009-12-17 01:57:30 +00:00
vmlinux.lds.S MIPS: Tracing: Add IRQENTRY_EXIT section for MIPS 2009-12-17 01:57:24 +00:00
vpe.c MIPS: Don't include <linux/smp_lock.h> unnecessarily. 2010-02-27 12:52:57 +01:00
watch.c