MIPS: Allow UserLocal on MIPS_R1 processors
authorKevin Cernekee <cernekee@gmail.com>
Sat, 16 Oct 2010 21:22:38 +0000 (14:22 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 29 Oct 2010 18:08:53 +0000 (19:08 +0100)
commit18d693b3598fdebdd5c65a613221793456a7ce45
treebdec7d15eb2ba774292358b2a617965ab3ff4530
parentea31a6b203710c03d1fc025377a19572e620588a
MIPS: Allow UserLocal on MIPS_R1 processors

Some MIPS32R1 processors implement UserLocal (RDHWR $29) to accelerate
programs that make extensive use of thread-local storage.  Therefore,
setting up the HWRENA register should not depend on cpu_has_mips_r2.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
arch/mips/kernel/traps.c