diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-20 04:33:56 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-20 04:33:56 -0800 |
| commit | e58d8e309fb22889a11a257cd8d01b04d0fc8373 (patch) | |
| tree | ce97fd0252c049bb08e79087765efb11d433e51c /include/linux/init_task.h | |
| parent | 91e2be4638503d6a3d08cc2cc9e6a9eac9b37df9 (diff) | |
Fix x86 "switch_to()" to properly set the previous task information,
which is needed to keep track of process usage counts correctly and
efficiently.
Diffstat (limited to 'include/linux/init_task.h')
| -rw-r--r-- | include/linux/init_task.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 9fe117695748..6e749b6c5a7f 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -62,6 +62,7 @@ { \ .state = 0, \ .thread_info = &init_thread_info, \ + .usage = ATOMIC_INIT(2), \ .flags = 0, \ .lock_depth = -1, \ .prio = MAX_PRIO-20, \ |
