diff options
| author | David Howells <dhowells@redhat.com> | 2002-02-06 22:56:27 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-02-06 22:56:27 -0800 |
| commit | 9b10610a79a288a4dbac366b32970573405c4ed1 (patch) | |
| tree | 7d28e9c2d36303f4cf2f63f2be855d5c711952ca /fs/proc/array.c | |
| parent | 4da68d0b68d5db2c10d9bbbdb6d4f3e766a4e3c0 (diff) | |
[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).
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index d0fbb66a14ff..08993e30dfb1 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -391,7 +391,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) task->nswap, task->cnswap, task->exit_signal, - task->cpu); + task->thread_info->cpu); if(mm) mmput(mm); return res; |
