diff options
author | Anton Blanchard <anton@samba.org> | 2010-08-12 16:28:09 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-11-29 15:48:17 +1100 |
commit | 64ff31287693c1f325cb9cb049569c1611438ef1 (patch) | |
tree | 3c159d2ca6f967fca13bae17cff19f92e0b3896c /arch/powerpc/kernel | |
parent | 72083646528d4887b920deb71b37e09bc7d227bb (diff) | |
download | kernel_samsung_smdk4412-64ff31287693c1f325cb9cb049569c1611438ef1.zip kernel_samsung_smdk4412-64ff31287693c1f325cb9cb049569c1611438ef1.tar.gz kernel_samsung_smdk4412-64ff31287693c1f325cb9cb049569c1611438ef1.tar.bz2 |
powerpc: Add support for popcnt instructions
POWER5 added popcntb, and POWER7 added popcntw and popcntd. As a first step
this patch does all the work out of line, but it would be nice to implement
them as inlines with an out of line fallback.
The performance issue with hweight was noticed when disabling SMT on a large
(192 thread) POWER7 box. The patch improves that testcase by about 8%.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/ppc_ksyms.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ppc_ksyms.c b/arch/powerpc/kernel/ppc_ksyms.c index ab3e392..ef3ef56 100644 --- a/arch/powerpc/kernel/ppc_ksyms.c +++ b/arch/powerpc/kernel/ppc_ksyms.c @@ -186,3 +186,10 @@ EXPORT_SYMBOL(__mtdcr); EXPORT_SYMBOL(__mfdcr); #endif EXPORT_SYMBOL(empty_zero_page); + +#ifdef CONFIG_PPC64 +EXPORT_SYMBOL(__arch_hweight8); +EXPORT_SYMBOL(__arch_hweight16); +EXPORT_SYMBOL(__arch_hweight32); +EXPORT_SYMBOL(__arch_hweight64); +#endif |