From: Anton Blanchard Date: Thu, 12 Aug 2010 16:28:09 +0000 (+0000) Subject: powerpc: Add support for popcnt instructions X-Git-Tag: v2.6.38-rc1~405^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64ff31287693c1f325cb9cb049569c1611438ef1;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed