diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2007-11-21 03:07:46 -0500 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:53 -0500 |
| commit | df0fb2562806e853e53de43af04f013c3e45427b (patch) | |
| tree | d1f6212a5dd5d4e5a249ae3ac8f2dc9f0c3b7476 | |
| parent | 60b2249d45d44bd3494d55f5ea4bccd25c7f8281 (diff) | |
sh: Fix up proc ASIDs for CPU-local ASID cache accessors.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| -rw-r--r-- | arch/sh/kernel/process_64.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c index 92d01465eb87..2dd97eecb44c 100644 --- a/arch/sh/kernel/process_64.c +++ b/arch/sh/kernel/process_64.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <linux/io.h> | 27 | #include <linux/io.h> |
| 28 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
| 29 | #include <asm/pgtable.h> | 29 | #include <asm/pgtable.h> |
| 30 | #include <asm/mmu_context.h> | ||
| 30 | 31 | ||
| 31 | struct task_struct *last_task_used_math = NULL; | 32 | struct task_struct *last_task_used_math = NULL; |
| 32 | 33 | ||
| @@ -674,17 +675,14 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void | |||
| 674 | read_lock(&tasklist_lock); | 675 | read_lock(&tasklist_lock); |
| 675 | for_each_process(p) { | 676 | for_each_process(p) { |
| 676 | int pid = p->pid; | 677 | int pid = p->pid; |
| 677 | struct mm_struct *mm; | 678 | |
| 678 | if (!pid) continue; | 679 | if (!pid) |
| 679 | mm = p->mm; | 680 | continue; |
| 680 | if (mm) { | 681 | if (p->mm) |
| 681 | unsigned long asid, context; | 682 | len += sprintf(buf+len, "%5d : %02lx\n", pid, |
| 682 | context = mm->context; | 683 | asid_cache(smp_processor_id())); |
| 683 | asid = (context & 0xff); | 684 | else |
| 684 | len += sprintf(buf+len, "%5d : %02lx\n", pid, asid); | ||
| 685 | } else { | ||
| 686 | len += sprintf(buf+len, "%5d : (none)\n", pid); | 685 | len += sprintf(buf+len, "%5d : (none)\n", pid); |
| 687 | } | ||
| 688 | } | 686 | } |
| 689 | read_unlock(&tasklist_lock); | 687 | read_unlock(&tasklist_lock); |
| 690 | *eof = 1; | 688 | *eof = 1; |
