Skip to content

Commit

Permalink
bitops: fix build in struct thread_info
Browse files Browse the repository at this point in the history
we can move flags from u32 to natural size - assembly code uses
offsetof.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 17, 2008
1 parent 8a6c160 commit dedd491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ struct exec_domain;
struct thread_info {
struct task_struct *task; /* main task structure */
struct exec_domain *exec_domain; /* execution domain */
__u32 flags; /* low level flags */
unsigned long flags; /* low level flags */
__u32 status; /* thread synchronous flags */
__u32 cpu; /* current CPU */
int preempt_count; /* 0 => preemptable,
int preempt_count; /* 0 => preemptable,
<0 => BUG */
mm_segment_t addr_limit;
struct restart_block restart_block;
Expand Down

0 comments on commit dedd491

Please sign in to comment.