|
@@ -29,7 +29,7 @@ void decode_address(char *buf, unsigned long address)
|
|
{
|
|
{
|
|
struct task_struct *p;
|
|
struct task_struct *p;
|
|
struct mm_struct *mm;
|
|
struct mm_struct *mm;
|
|
- unsigned long flags, offset;
|
|
|
|
|
|
+ unsigned long offset;
|
|
struct rb_node *n;
|
|
struct rb_node *n;
|
|
|
|
|
|
#ifdef CONFIG_KALLSYMS
|
|
#ifdef CONFIG_KALLSYMS
|
|
@@ -113,7 +113,7 @@ void decode_address(char *buf, unsigned long address)
|
|
* mappings of all our processes and see if we can't be a whee
|
|
* mappings of all our processes and see if we can't be a whee
|
|
* bit more specific
|
|
* bit more specific
|
|
*/
|
|
*/
|
|
- write_lock_irqsave(&tasklist_lock, flags);
|
|
|
|
|
|
+ read_lock(&tasklist_lock);
|
|
for_each_process(p) {
|
|
for_each_process(p) {
|
|
struct task_struct *t;
|
|
struct task_struct *t;
|
|
|
|
|
|
@@ -186,7 +186,7 @@ __continue:
|
|
sprintf(buf, "/* kernel dynamic memory */");
|
|
sprintf(buf, "/* kernel dynamic memory */");
|
|
|
|
|
|
done:
|
|
done:
|
|
- write_unlock_irqrestore(&tasklist_lock, flags);
|
|
|
|
|
|
+ read_unlock(&tasklist_lock);
|
|
}
|
|
}
|
|
|
|
|
|
#define EXPAND_LEN ((1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 256 - 1)
|
|
#define EXPAND_LEN ((1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 256 - 1)
|