From: Kenn H. <ke...@us...> - 2001-02-05 00:01:15
|
Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax In directory usw-pr-cvs1:/tmp/cvs-serv29423 Modified Files: processor.h Log Message: Fix release_thread() and get_task_struct() Index: processor.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/processor.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- processor.h 2001/01/23 23:50:19 1.6 +++ processor.h 2001/02/05 00:01:24 1.7 @@ -89,7 +89,10 @@ struct task_struct; /* Free all resources held by a thread. */ -extern void release_thread(struct task_struct *); +static inline void release_thread(struct task_struct *p) +{ + /* nothing to do on VAX */ +} extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); @@ -135,9 +138,12 @@ chunks later when memory gets fragmented on small machines. See arch/i386/kernel/process.c for the implementation of this. */ + +/* FIXME: change the page order from 4 to 1 once the pagelet stuff is done */ #define alloc_task_struct() \ ((struct task_struct *) __get_free_pages(GFP_KERNEL,4)) #define free_task_struct(p) free_pages((unsigned long)(p),4) +#define get_task_struct(tsk) atomic_inc(&virt_to_page(tsk)->count) #define init_task (init_task_union.task) #define init_stack (init_task_union.stack) |