diff options
author | Yalin Wang <Yalin.Wang@sonymobile.com> | 2014-11-02 21:01:03 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-12-22 11:43:06 -0500 |
commit | 556d2f055bf6d79ce81587dfe774d4dd10da473f (patch) | |
tree | 3b1eaeda540d1592936691f953607a377668f90f /lib/Kconfig | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
ARM: 8187/1: add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction
this change add CONFIG_HAVE_ARCH_BITREVERSE config option,
so that we can use some architecture's bitrev hardware instruction
to do bitrev operation.
Introduce __constant_bitrev* macro for constant bitrev operation.
Change __bitrev16() __bitrev32() to be inline function,
don't need export symbol for these tiny functions.
Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 54cf309a92a5..cd177caf3876 100644 --- a/lib/Kconfig +++ b/lib/Kconfig | |||
@@ -13,6 +13,15 @@ config RAID6_PQ | |||
13 | config BITREVERSE | 13 | config BITREVERSE |
14 | tristate | 14 | tristate |
15 | 15 | ||
16 | config HAVE_ARCH_BITREVERSE | ||
17 | boolean | ||
18 | default n | ||
19 | depends on BITREVERSE | ||
20 | help | ||
21 | This option provides an config for the architecture which have instruction | ||
22 | can do bitreverse operation, we use the hardware instruction if the architecture | ||
23 | have this capability. | ||
24 | |||
16 | config RATIONAL | 25 | config RATIONAL |
17 | boolean | 26 | boolean |
18 | 27 | ||