diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-28 08:29:59 -0400 |
| commit | 185a257f2f73bcd89050ad02da5bedbc28fc43fa (patch) | |
| tree | 5e32586114534ed3f2165614cba3d578f5d87307 /include/linux/sched.h | |
| parent | 3f1a9aaeffd8d1cbc5ab9776c45cbd66af1c9699 (diff) | |
| parent | a77c64c1a641950626181b4857abb701d8f38ccc (diff) | |
Merge branch 'master' into gfs2
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 34ed0d99b1bd..9d4aa7f95bc8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -819,6 +819,11 @@ struct task_struct { | |||
| 819 | unsigned did_exec:1; | 819 | unsigned did_exec:1; |
| 820 | pid_t pid; | 820 | pid_t pid; |
| 821 | pid_t tgid; | 821 | pid_t tgid; |
| 822 | |||
| 823 | #ifdef CONFIG_CC_STACKPROTECTOR | ||
| 824 | /* Canary value for the -fstack-protector gcc feature */ | ||
| 825 | unsigned long stack_canary; | ||
| 826 | #endif | ||
| 822 | /* | 827 | /* |
| 823 | * pointers to (original) parent process, youngest child, younger sibling, | 828 | * pointers to (original) parent process, youngest child, younger sibling, |
| 824 | * older sibling, respectively. (p->father can be replaced with | 829 | * older sibling, respectively. (p->father can be replaced with |
| @@ -865,6 +870,15 @@ struct task_struct { | |||
| 865 | struct key *thread_keyring; /* keyring private to this thread */ | 870 | struct key *thread_keyring; /* keyring private to this thread */ |
| 866 | unsigned char jit_keyring; /* default keyring to attach requested keys to */ | 871 | unsigned char jit_keyring; /* default keyring to attach requested keys to */ |
| 867 | #endif | 872 | #endif |
| 873 | /* | ||
| 874 | * fpu_counter contains the number of consecutive context switches | ||
| 875 | * that the FPU is used. If this is over a threshold, the lazy fpu | ||
| 876 | * saving becomes unlazy to save the trap. This is an unsigned char | ||
| 877 | * so that after 256 times the counter wraps and the behavior turns | ||
| 878 | * lazy again; this to deal with bursty apps that only use FPU for | ||
| 879 | * a short time | ||
| 880 | */ | ||
| 881 | unsigned char fpu_counter; | ||
| 868 | int oomkilladj; /* OOM kill score adjustment (bit shift). */ | 882 | int oomkilladj; /* OOM kill score adjustment (bit shift). */ |
| 869 | char comm[TASK_COMM_LEN]; /* executable name excluding path | 883 | char comm[TASK_COMM_LEN]; /* executable name excluding path |
| 870 | - access with [gs]et_task_comm (which lock | 884 | - access with [gs]et_task_comm (which lock |
