diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ae21f1591615..04b5ada460b4 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1522,8 +1522,6 @@ struct task_struct { | |||
1522 | /* hung task detection */ | 1522 | /* hung task detection */ |
1523 | unsigned long last_switch_count; | 1523 | unsigned long last_switch_count; |
1524 | #endif | 1524 | #endif |
1525 | /* CPU-specific state of this task */ | ||
1526 | struct thread_struct thread; | ||
1527 | /* filesystem information */ | 1525 | /* filesystem information */ |
1528 | struct fs_struct *fs; | 1526 | struct fs_struct *fs; |
1529 | /* open file information */ | 1527 | /* open file information */ |
@@ -1778,8 +1776,22 @@ struct task_struct { | |||
1778 | unsigned long task_state_change; | 1776 | unsigned long task_state_change; |
1779 | #endif | 1777 | #endif |
1780 | int pagefault_disabled; | 1778 | int pagefault_disabled; |
1779 | /* CPU-specific state of this task */ | ||
1780 | struct thread_struct thread; | ||
1781 | /* | ||
1782 | * WARNING: on x86, 'thread_struct' contains a variable-sized | ||
1783 | * structure. It *MUST* be at the end of 'task_struct'. | ||
1784 | * | ||
1785 | * Do not put anything below here! | ||
1786 | */ | ||
1781 | }; | 1787 | }; |
1782 | 1788 | ||
1789 | #ifdef CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT | ||
1790 | extern int arch_task_struct_size __read_mostly; | ||
1791 | #else | ||
1792 | # define arch_task_struct_size (sizeof(struct task_struct)) | ||
1793 | #endif | ||
1794 | |||
1783 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1795 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |
1784 | #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) | 1796 | #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) |
1785 | 1797 | ||