vserver 2.0 rc7
[linux-2.6.git] / arch / sh64 / kernel / process.c
index e3f509e..efde41c 100644 (file)
@@ -638,7 +638,6 @@ void free_task_struct(struct task_struct *p)
 int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
 {
        /* A bit less processor dependent than older sh ... */
-
        unsigned int reply;
 
 static __inline__ _syscall2(int,clone,unsigned long,flags,unsigned long,newsp)
@@ -671,7 +670,7 @@ void exit_thread(void)
           null it here, there is no other path through which it would get safely
           nulled. */
 
-#ifndef CONFIG_NOFPU_SUPPORT
+#ifdef CONFIG_SH_FPU
        if (last_task_used_math == current) {
                last_task_used_math = NULL;
        }
@@ -683,7 +682,7 @@ void flush_thread(void)
 
        /* Called by fs/exec.c (flush_old_exec) to remove traces of a
         * previously running executable. */
-#ifndef CONFIG_NOFPU_SUPPORT
+#ifdef CONFIG_SH_FPU
        if (last_task_used_math == current) {
                last_task_used_math = NULL;
        }
@@ -709,7 +708,7 @@ void release_thread(struct task_struct *dead_task)
 /* Fill in the fpu structure for a core dump.. */
 int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
 {
-#ifndef CONFIG_NOFPU_SUPPORT
+#ifdef CONFIG_SH_FPU
        int fpvalid;
        struct task_struct *tsk = current;
 
@@ -741,7 +740,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
        struct pt_regs *childregs;
        unsigned long long se;                  /* Sign extension */
 
-#ifndef CONFIG_NOFPU_SUPPORT
+#ifdef CONFIG_SH_FPU
        if(last_task_used_math == current) {
                grab_fpu();
                fpsave(&current->thread.fpu.hard);
@@ -933,7 +932,7 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void
        int len=0;
        struct task_struct *p;
        read_lock(&tasklist_lock);
-       for_each_task(p) {
+       for_each_process(p) {
                int pid = p->pid;
                struct mm_struct *mm;
                if (!pid) continue;
@@ -942,7 +941,7 @@ asids_proc_info(char *buf, char **start, off_t fpos, int length, int *eof, void
                        unsigned long asid, context;
                        context = mm->context;
                        asid = (context & 0xff);
-                       len += sprintf(buf+len, "%5d : %02x\n", pid, asid);
+                       len += sprintf(buf+len, "%5d : %02lx\n", pid, asid);
                } else {
                        len += sprintf(buf+len, "%5d : (none)\n", pid);
                }