From: Oleg Nesterov Date: Tue, 16 Feb 2010 14:24:01 +0000 (+0100) Subject: x86: ELF_PLAT_INIT() shouldn't worry about TIF_IA32 X-Git-Tag: v2.6.33~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11557b24fdec13cb1c3d5f681688401a651ed54e;p=platform%2Fupstream%2Fkernel-adaptation-pc.git x86: ELF_PLAT_INIT() shouldn't worry about TIF_IA32 The 64-bit version of ELF_PLAT_INIT() clears TIF_IA32, but at this point it has already been cleared by SET_PERSONALITY == set_personality_64bit. Signed-off-by: Oleg Nesterov Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h index 1994d3f..f2ad216 100644 --- a/arch/x86/include/asm/elf.h +++ b/arch/x86/include/asm/elf.h @@ -170,10 +170,7 @@ static inline void elf_common_init(struct thread_struct *t, } #define ELF_PLAT_INIT(_r, load_addr) \ -do { \ - elf_common_init(¤t->thread, _r, 0); \ - clear_thread_flag(TIF_IA32); \ -} while (0) + elf_common_init(¤t->thread, _r, 0) #define COMPAT_ELF_PLAT_INIT(regs, load_addr) \ elf_common_init(¤t->thread, regs, __USER_DS)