提交 df0fb256 编写于 作者: P Paul Mundt

sh: Fix up proc ASIDs for CPU-local ASID cache accessors.

Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 60b2249d
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/mmu_context.h>
struct task_struct *last_task_used_math = NULL; struct task_struct *last_task_used_math = NULL;
...@@ -674,17 +675,14 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void ...@@ -674,17 +675,14 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void
read_lock(&tasklist_lock); read_lock(&tasklist_lock);
for_each_process(p) { for_each_process(p) {
int pid = p->pid; int pid = p->pid;
struct mm_struct *mm;
if (!pid) continue; if (!pid)
mm = p->mm; continue;
if (mm) { if (p->mm)
unsigned long asid, context; len += sprintf(buf+len, "%5d : %02lx\n", pid,
context = mm->context; asid_cache(smp_processor_id()));
asid = (context & 0xff); else
len += sprintf(buf+len, "%5d : %02lx\n", pid, asid);
} else {
len += sprintf(buf+len, "%5d : (none)\n", pid); len += sprintf(buf+len, "%5d : (none)\n", pid);
}
} }
read_unlock(&tasklist_lock); read_unlock(&tasklist_lock);
*eof = 1; *eof = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册