]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8facfebc5a8e4f280ca56943767297a849fb4079
treeea2167af388b04168361423132ea7b188f0b0945
parente95ca8d9939a3358363b9e902e0e9ac16b6e63aa
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