Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=df0fb2562806e853e53de43af04f013c3e45427b
Commit:     df0fb2562806e853e53de43af04f013c3e45427b
Parent:     60b2249d45d44bd3494d55f5ea4bccd25c7f8281
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 21 17:07:46 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 13:18:53 2008 +0900

    sh: Fix up proc ASIDs for CPU-local ASID cache accessors.
    
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 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 92d0146..2dd97ee 100644
--- a/arch/sh/kernel/process_64.c
+++ b/arch/sh/kernel/process_64.c
@@ -27,6 +27,7 @@
 #include <linux/io.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
+#include <asm/mmu_context.h>
 
 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
        read_lock(&tasklist_lock);
        for_each_process(p) {
                int pid = p->pid;
-               struct mm_struct *mm;
-               if (!pid) continue;
-               mm = p->mm;
-               if (mm) {
-                       unsigned long asid, context;
-                       context = mm->context;
-                       asid = (context & 0xff);
-                       len += sprintf(buf+len, "%5d : %02lx\n", pid, asid);
-               } else {
+
+               if (!pid)
+                       continue;
+               if (p->mm)
+                       len += sprintf(buf+len, "%5d : %02lx\n", pid,
+                                      asid_cache(smp_processor_id()));
+               else
                        len += sprintf(buf+len, "%5d : (none)\n", pid);
-               }
        }
        read_unlock(&tasklist_lock);
        *eof = 1;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to