ARM: 7680/1: Detect support for SDIV/UDIV from ISAR0 register
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 18 Mar 2013 18:44:15 +0000 (19:44 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 22 Mar 2013 17:16:55 +0000 (17:16 +0000)
commit8164f7af88d9ad3a757bd14f634b23997ee77f6b
treeea2167af388b04168361423132ea7b188f0b0945
parentc40e3641670eb6ebfdb71d4b0c775416ef95f4f0
ARM: 7680/1: Detect support for SDIV/UDIV from ISAR0 register

The ISAR0 register indicates support for the SDIV and UDIV
instructions in both the Thumb and ARM instruction set. Read the
register to detect the supported instructions and update the
elf_hwcap mask as appropriate. This is better than adding more
and more cpuid checks in proc-v7.S for each new cpu variant that
supports these instructions.

Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c
arch/arm/mm/proc-v7.S