diff options
Diffstat (limited to 'include/asm-ia64/thread_info.h')
| -rw-r--r-- | include/asm-ia64/thread_info.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-ia64/thread_info.h b/include/asm-ia64/thread_info.h index 93d83cbe0c8c..6da8069a0f77 100644 --- a/include/asm-ia64/thread_info.h +++ b/include/asm-ia64/thread_info.h | |||
| @@ -31,6 +31,12 @@ struct thread_info { | |||
| 31 | mm_segment_t addr_limit; /* user-level address space limit */ | 31 | mm_segment_t addr_limit; /* user-level address space limit */ |
| 32 | int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ | 32 | int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */ |
| 33 | struct restart_block restart_block; | 33 | struct restart_block restart_block; |
| 34 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING | ||
| 35 | __u64 ac_stamp; | ||
| 36 | __u64 ac_leave; | ||
| 37 | __u64 ac_stime; | ||
| 38 | __u64 ac_utime; | ||
| 39 | #endif | ||
| 34 | }; | 40 | }; |
| 35 | 41 | ||
| 36 | #define THREAD_SIZE KERNEL_STACK_SIZE | 42 | #define THREAD_SIZE KERNEL_STACK_SIZE |
| @@ -62,9 +68,17 @@ struct thread_info { | |||
| 62 | #define task_stack_page(tsk) ((void *)(tsk)) | 68 | #define task_stack_page(tsk) ((void *)(tsk)) |
| 63 | 69 | ||
| 64 | #define __HAVE_THREAD_FUNCTIONS | 70 | #define __HAVE_THREAD_FUNCTIONS |
| 71 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING | ||
| 72 | #define setup_thread_stack(p, org) \ | ||
| 73 | *task_thread_info(p) = *task_thread_info(org); \ | ||
| 74 | task_thread_info(p)->ac_stime = 0; \ | ||
| 75 | task_thread_info(p)->ac_utime = 0; \ | ||
| 76 | task_thread_info(p)->task = (p); | ||
| 77 | #else | ||
| 65 | #define setup_thread_stack(p, org) \ | 78 | #define setup_thread_stack(p, org) \ |
| 66 | *task_thread_info(p) = *task_thread_info(org); \ | 79 | *task_thread_info(p) = *task_thread_info(org); \ |
| 67 | task_thread_info(p)->task = (p); | 80 | task_thread_info(p)->task = (p); |
| 81 | #endif | ||
| 68 | #define end_of_stack(p) (unsigned long *)((void *)(p) + IA64_RBS_OFFSET) | 82 | #define end_of_stack(p) (unsigned long *)((void *)(p) + IA64_RBS_OFFSET) |
| 69 | 83 | ||
| 70 | #define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR | 84 | #define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR |
