]> 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)
commit09b8d5469afe3bdcc832d0a718a7fcbac735d3db
treeea2167af388b04168361423132ea7b188f0b0945
parent18b780e81b9ca6282218d7c96b43cfc030441f03
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