[PATCH] thread information block
authorDavid Howells <dhowells@redhat.com>
Thu, 7 Feb 2002 06:56:27 +0000 (22:56 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 7 Feb 2002 06:56:27 +0000 (22:56 -0800)
commit9b10610a79a288a4dbac366b32970573405c4ed1
tree7d28e9c2d36303f4cf2f63f2be855d5c711952ca
parent4da68d0b68d5db2c10d9bbbdb6d4f3e766a4e3c0
[PATCH] thread information block

syscall latency improvement

 * There's now an asm/thread_info.h header file with the basic structure
   def and asm offsets in it.

 * There's now a linux/thread_info.h header file which includes the asm
   version and wraps some bitops calls to make convenience functions for
   accessing the low-level flags.

 * The task_struct has had some fields removed (and some flags), and has
   acquired a pointer to the thread_info struct.

 * task_struct's are now allocated on slabs in kernel/fork.c, whereas
   thread_info structs are allocated at the bottom of the stack pages.

 * Some more convenience functions are provided at the end of linux/sched.h to
   access flags in other tasks (these are here because they need to access the
   task_struct).
36 files changed:
arch/i386/kernel/entry.S
arch/i386/kernel/head.S
arch/i386/kernel/i387.c
arch/i386/kernel/init_task.c
arch/i386/kernel/irq.c
arch/i386/kernel/nmi.c
arch/i386/kernel/process.c
arch/i386/kernel/ptrace.c
arch/i386/kernel/setup.c
arch/i386/kernel/signal.c
arch/i386/kernel/smpboot.c
arch/i386/kernel/traps.c
arch/i386/lib/getuser.S
fs/lockd/svc.c
fs/nfsd/export.c
fs/proc/array.c
fs/proc/base.c
include/asm-i386/current.h
include/asm-i386/hw_irq.h
include/asm-i386/i387.h
include/asm-i386/processor.h
include/asm-i386/smp.h
include/asm-i386/thread_info.h [new file with mode: 0644]
include/asm-i386/uaccess.h
include/asm-i386/xor.h
include/linux/init_task.h
include/linux/sched.h
include/linux/thread_info.h [new file with mode: 0644]
kernel/exec_domain.c
kernel/exit.c
kernel/fork.c
kernel/ksyms.c
kernel/sched.c
kernel/signal.c
net/sunrpc/sched.c
net/sunrpc/svc.c