aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2008-07-17 08:12:25 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-22 10:39:33 +1000
commit6fdc9f5076e0f6018e1d9250c6673f812b556d90 (patch)
treee2e33eecd71cac99f69787cb178a529428be635f /arch
parent72e82dcd1f8fc6f99e0ee2ef1ed1ff37c1e63858 (diff)
downloadkernel_goldelico_gta04-6fdc9f5076e0f6018e1d9250c6673f812b556d90.zip
kernel_goldelico_gta04-6fdc9f5076e0f6018e1d9250c6673f812b556d90.tar.gz
kernel_goldelico_gta04-6fdc9f5076e0f6018e1d9250c6673f812b556d90.tar.bz2
powerpc: Fix support for latencytop
We need to pass the kernel stack pointer instead of the user space stack pointer in save_stack_trace_tsk(). Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/stacktrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/stacktrace.c b/arch/powerpc/kernel/stacktrace.c
index 071bee3..f258964 100644
--- a/arch/powerpc/kernel/stacktrace.c
+++ b/arch/powerpc/kernel/stacktrace.c
@@ -59,6 +59,6 @@ EXPORT_SYMBOL_GPL(save_stack_trace);
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
{
- save_context_stack(trace, tsk->thread.regs->gpr[1], tsk, 0);
+ save_context_stack(trace, tsk->thread.ksp, tsk, 0);
}
EXPORT_SYMBOL_GPL(save_stack_trace_tsk);