Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92277
b: refs/heads/master
c: 904656c
h: refs/heads/master
i:
  92275: fb21c18
v: v3
  • Loading branch information
Robin Getz authored and Bryan Wu committed Mar 26, 2008
1 parent 15c2c77 commit 3bb6dd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a62ca40fd793742f92565104c6b44319af8c282
refs/heads/master: 904656cda10ce985e6bc8b16488b58236eaec8e2
8 changes: 4 additions & 4 deletions trunk/arch/blackfin/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void decode_address(char *buf, unsigned long address)
struct task_struct *p;
struct mm_struct *mm;
unsigned long flags, offset;
unsigned int in_exception = bfin_read_IPEND() & 0x10;
unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic();

#ifdef CONFIG_KALLSYMS
unsigned long symsize;
Expand Down Expand Up @@ -117,7 +117,7 @@ static void decode_address(char *buf, unsigned long address)
*/
write_lock_irqsave(&tasklist_lock, flags);
for_each_process(p) {
mm = (in_exception ? p->mm : get_task_mm(p));
mm = (in_atomic ? p->mm : get_task_mm(p));
if (!mm)
continue;

Expand Down Expand Up @@ -146,14 +146,14 @@ static void decode_address(char *buf, unsigned long address)

sprintf(buf, "<0x%p> [ %s + 0x%lx ]",
(void *)address, name, offset);
if (!in_exception)
if (!in_atomic)
mmput(mm);
goto done;
}

vml = vml->next;
}
if (!in_exception)
if (!in_atomic)
mmput(mm);
}

Expand Down

0 comments on commit 3bb6dd3

Please sign in to comment.