From: Kenn H. <ke...@us...> - 2002-12-01 23:58:08
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel In directory sc8-pr-cvs1:/tmp/cvs-serv7720 Modified Files: process.c Log Message: switch_to no longer needs to return the last task. Also drop call to check_pgt_cache from idle loop, since 2.5.5 no longer maintains page table lookaside lists. Index: process.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel/process.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- process.c 29 Oct 2002 00:52:50 -0000 1.7 +++ process.c 1 Dec 2002 23:58:04 -0000 1.8 @@ -11,6 +11,7 @@ #include <linux/smp_lock.h> #include <linux/fs.h> +#include <linux/mm.h> #include <linux/slab.h> #include <asm/uaccess.h> #include <asm/current.h> @@ -29,24 +30,20 @@ void cpu_idle(void) { /* endless idle loop with no priority at all */ - current->__nice = 20; while(1) { /* Although we are an idle CPU, we do not want to get into the scheduler unnecessarily. */ if (need_resched()) { schedule(); - check_pgt_cache(); } } } -struct task_struct* -vax_switch_to(struct task_struct* prev, struct task_struct* next) +void switch_to(struct task_struct* prev, struct task_struct* next) { unsigned long pcbb; /* physical address of new pcb */ - struct task_struct *retval; #ifdef VAX_PROCESS_DEBUG printk("vax_switch_to: switching %08lx -> %08lx\n", @@ -60,24 +57,20 @@ /* svpctx should deal with writing the stuff into *prev */ - asm(" movl %1, r11 \n - movpsl -(sp) \n + asm(" movpsl -(sp) \n pushab 1f \n - mtpr %4,%5 \n + mtpr %3, %4 \n svpctx \n - mtpr %2, %3 \n + mtpr %1, %2 \n ldpctx \n rei \n - 1: \n - movl r11, %0" - : "=g"(retval) + 1: " + : /* no outputs */ : "g"(prev), "r"(pcbb), "g"(PR_PCBB), "g"(31), "g"(PR_IPL) - : "r11" + /* no clobbers */ ); - - return retval; } /* This _must_ match the stack layout in effect at ret_from_syscall |