diff options
author | Joe Korty <joe.korty@ccur.com> | 2008-12-03 18:58:19 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-04 05:06:03 -0500 |
commit | affa219b60a11b3295637a97f5b1b8ef231490fc (patch) | |
tree | 410004998119ec6066a3585a1b97f028d8d4d8a3 | |
parent | c0515566f3117c44b0572559bcc3cb00899b0910 (diff) |
x86: change thread_info's flag field back to 32 bits
Impact: pack struct thread_info more tightly
Change x86_64's thread_info 'flags' field back to __u32.
This was changed to 'unsigned long' when the thread_info*.h
for i386 and x86_64 were merged. Change it back. We can
do this as only 27 bits of 'flags' are actually used.
This change actually packs down thread_info by 64 bits:
32 bits are saved by the smaller flags, and 32 bits are
saved by the following 'mm_segment_t field' becoming
naturally 64-bit aligned.
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/include/asm/thread_info.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index e44d379faad2..8dbc57390d25 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h | |||
@@ -24,7 +24,7 @@ struct exec_domain; | |||
24 | struct thread_info { | 24 | struct thread_info { |
25 | struct task_struct *task; /* main task structure */ | 25 | struct task_struct *task; /* main task structure */ |
26 | struct exec_domain *exec_domain; /* execution domain */ | 26 | struct exec_domain *exec_domain; /* execution domain */ |
27 | unsigned long flags; /* low level flags */ | 27 | __u32 flags; /* low level flags */ |
28 | __u32 status; /* thread synchronous flags */ | 28 | __u32 status; /* thread synchronous flags */ |
29 | __u32 cpu; /* current CPU */ | 29 | __u32 cpu; /* current CPU */ |
30 | int preempt_count; /* 0 => preemptable, | 30 | int preempt_count; /* 0 => preemptable, |