Commit ed129746 authored by Russell King's avatar Russell King

[ARM] Replace __backtrace() with dump_stack().

parent 7eb4f12e
......@@ -37,6 +37,7 @@
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/init.h>
......@@ -203,9 +204,7 @@ void release_fiq(struct fiq_handler *f)
if (current_fiq != f) {
printk(KERN_ERR "%s FIQ trying to release %s FIQ\n",
f->name, current_fiq->name);
#ifdef CONFIG_DEBUG_ERRORS
__backtrace();
#endif
dump_stack();
return;
}
......
......@@ -578,9 +578,7 @@ void free_irq(unsigned int irq, void *dev_id)
if (irq >= NR_IRQS || !irq_desc[irq].valid) {
printk(KERN_ERR "Trying to free IRQ%d\n",irq);
#ifdef CONFIG_DEBUG_ERRORS
__backtrace();
#endif
dump_stack();
return;
}
......@@ -597,9 +595,7 @@ void free_irq(unsigned int irq, void *dev_id)
if (!action) {
printk(KERN_ERR "Trying to free free IRQ%d\n",irq);
#ifdef CONFIG_DEBUG_ERRORS
__backtrace();
#endif
dump_stack();
} else {
synchronize_irq(irq);
kfree(action);
......
......@@ -170,7 +170,9 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
void dump_stack(void)
{
#ifdef CONFIG_DEBUG_ERRORS
__backtrace();
#endif
}
/*
......@@ -530,7 +532,7 @@ void __pgd_error(const char *file, int line, unsigned long val)
asmlinkage void __div0(void)
{
printk("Division by zero in kernel.\n");
__backtrace();
dump_stack();
}
void abort(void)
......
......@@ -84,12 +84,8 @@ void __init footbridge_map_io(void)
*/
unsigned long __virt_to_bus(unsigned long res)
{
#ifdef CONFIG_DEBUG_ERRORS
if (res < PAGE_OFFSET || res >= (unsigned long)high_memory) {
printk("__virt_to_bus: invalid virtual address 0x%08lx\n", res);
__backtrace();
}
#endif
WARN_ON(res < PAGE_OFFSET || res >= (unsigned long)high_memory);
return (res - PAGE_OFFSET) + (*CSR_PCISDRAMBASE & 0xfffffff0);
}
......@@ -98,12 +94,8 @@ unsigned long __bus_to_virt(unsigned long res)
res -= (*CSR_PCISDRAMBASE & 0xfffffff0);
res += PAGE_OFFSET;
#ifdef CONFIG_DEBUG_ERRORS
if (res < PAGE_OFFSET || res >= (unsigned long)high_memory) {
printk("__bus_to_virt: invalid virtual address 0x%08lx\n", res);
__backtrace();
}
#endif
WARN_ON(res < PAGE_OFFSET || res >= (unsigned long)high_memory);
return res;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment