kernel-ark/arch/sparc64
David S. Miller 85a7935335 [SPARC64]: Make save_stack_trace() more efficient.
Doing a 'flushw' every stack trace capture creates so much overhead
that it makes lockdep next to unusable.

We only care about the frame pointer chain and the function caller
program counters, so flush those by hand to the stack frame.

This is significantly more efficient than a 'flushw' because:

1) We only save 16 bytes per active register window to the stack.

2) This doesn't push the entire register window context of the current
   call chain out of the cpu, forcing register window fill traps as we
   return back down.

Note that we can't use 'restore' and 'save' instructions to move
around the register windows because that wouldn't work on Niagara
processors.  They optimize 'save' into a new register window by
simply clearing out the registers instead of pulling them in from
the on-chip register window backing store.

Based upon a report by Tom Callaway.

Signed-off-by: David S. Miller <davem@davemloft.net>
2008-03-24 20:06:24 -07:00
..
boot
kernel [SPARC64]: Make save_stack_trace() more efficient. 2008-03-24 20:06:24 -07:00
lib [SPARC64]: Fix inconsistent .section usage in lib/ 2008-01-31 19:32:44 -08:00
math-emu [SPARC64]: small Makefile cleanups 2007-10-22 02:32:10 -07:00
mm [SPARC64]: Remove most limitations to kernel image size. 2008-03-21 17:01:38 -07:00
oprofile Combine instrumentation menus in kernel/Kconfig.instrumentation 2007-10-19 11:53:54 -07:00
prom [SPARC]: Kill 'prom_palette'. 2008-02-18 15:28:16 -08:00
solaris sparc64: replace remaining __FUNCTION__ occurances 2008-03-03 11:42:17 -08:00
defconfig [SPARC64]: Update defconfig. 2008-02-17 22:44:32 -08:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 2008-02-09 23:28:26 -08:00
Kconfig.debug [SPARC64]: Remove DEBUG_BOOTMEM. 2008-02-13 01:00:26 -08:00
Makefile [SPARC64]: Add -mtune=ultrasparc3 if possible. 2008-02-17 22:43:34 -08:00