diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:45 -0500 |
commit | 91394eb0975b3771dde7071a0825c6df6c20ff8a (patch) | |
tree | f6ba91aa9ed6514a66bfbd8476e7a59444ad230f /arch/x86/kernel/process_64.c | |
parent | 859c0a5b9ca8eba2d65fa42f02505d76f8a712c7 (diff) |
x86: use get_desc_base
This changes a couple of places to use the get_desc_base function.
They were duplicating the same calculation with different equivalent code.
Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index aa9414ed74c7..9ea1d7546f80 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -464,11 +464,7 @@ static inline void set_32bit_tls(struct task_struct *t, int tls, u32 addr) | |||
464 | 464 | ||
465 | static inline u32 read_32bit_tls(struct task_struct *t, int tls) | 465 | static inline u32 read_32bit_tls(struct task_struct *t, int tls) |
466 | { | 466 | { |
467 | struct desc_struct *desc = (void *)t->thread.tls_array; | 467 | return get_desc_base(&t->thread.tls_array[tls]); |
468 | desc += tls; | ||
469 | return desc->base0 | | ||
470 | (((u32)desc->base1) << 16) | | ||
471 | (((u32)desc->base2) << 24); | ||
472 | } | 468 | } |
473 | 469 | ||
474 | /* | 470 | /* |