summaryrefslogtreecommitdiffstats
path: root/arch/sh/oprofile/backtrace.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-14 04:59:50 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-08-14 04:59:50 +0900
commitf54aab4a7486fb7947d6d746f3423f67676811c8 (patch)
tree3877d0b4c1c994dc099e6aaa512e069dfb933278 /arch/sh/oprofile/backtrace.c
parent0eff9f66de79a0707a9c3a2f8528ccfd62100f0b (diff)
downloadblackbird-obmc-linux-f54aab4a7486fb7947d6d746f3423f67676811c8.tar.gz
blackbird-obmc-linux-f54aab4a7486fb7947d6d746f3423f67676811c8.zip
sh: oprofile: Kill off dead valid_kernel_stack().
This is no longer used, kill it off. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/oprofile/backtrace.c')
-rw-r--r--arch/sh/oprofile/backtrace.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/sh/oprofile/backtrace.c b/arch/sh/oprofile/backtrace.c
index 37cd75d7930e..2bc74de23f08 100644
--- a/arch/sh/oprofile/backtrace.c
+++ b/arch/sh/oprofile/backtrace.c
@@ -81,33 +81,6 @@ user_backtrace(unsigned long *stackaddr, struct pt_regs *regs)
return stackaddr;
}
-/*
- * | | /\ Higher addresses
- * | |
- * --------------- stack base (address of current_thread_info)
- * | thread info |
- * . .
- * | stack |
- * --------------- saved regs->regs[15] value if valid
- * . .
- * --------------- struct pt_regs stored on stack (struct pt_regs *)
- * | |
- * . .
- * | |
- * --------------- ???
- * | |
- * | | \/ Lower addresses
- *
- * Thus, &pt_regs <-> stack base restricts the valid(ish) fp values
- */
-static int valid_kernel_stack(unsigned long *stackaddr, struct pt_regs *regs)
-{
- unsigned long stack = (unsigned long)regs;
- unsigned long stack_base = (stack & ~(THREAD_SIZE - 1)) + THREAD_SIZE;
-
- return ((unsigned long)stackaddr > stack) && ((unsigned long)stackaddr < stack_base);
-}
-
void sh_backtrace(struct pt_regs * const regs, unsigned int depth)
{
unsigned long *stackaddr;
OpenPOWER on IntegriCloud