]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: oprofile: Kill off dead valid_kernel_stack().
authorPaul Mundt <lethal@linux-sh.org>
Thu, 13 Aug 2009 19:59:50 +0000 (04:59 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 13 Aug 2009 19:59:50 +0000 (04:59 +0900)
This is no longer used, kill it off.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/oprofile/backtrace.c

index 37cd75d7930e8aff20788020ac7b09ae3ecc9b31..2bc74de23f08ddb425c086999af359874416e3b6 100644 (file)
@@ -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;