[ARM] 2941/1: Fix running legacy binaries from a soft-float root filesystem with CONFIG_IWMMXT.

Patch from Daniel Jacobowitz

Thread flags are inherited on fork(). In order for a binary which has
the iWMMXt coprocessor enabled to run a binary which needs the FPA
emulation, we need to explicitly clear TIF_USING_IWMMXT if we are not
going to set it.

Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Daniel Jacobowitz and committed by Russell King dce79aff fc611a1a

+2
+2
include/asm-arm/elf.h
··· 124 if (((ex).e_flags & EF_ARM_EABI_MASK) || \ 125 ((ex).e_flags & EF_ARM_SOFT_FLOAT)) \ 126 set_thread_flag(TIF_USING_IWMMXT); \ 127 } while (0) 128 129 #endif
··· 124 if (((ex).e_flags & EF_ARM_EABI_MASK) || \ 125 ((ex).e_flags & EF_ARM_SOFT_FLOAT)) \ 126 set_thread_flag(TIF_USING_IWMMXT); \ 127 + else \ 128 + clear_thread_flag(TIF_USING_IWMMXT); \ 129 } while (0) 130 131 #endif