From: Christoph Lameter Date: Sat, 12 Mar 2011 11:50:10 +0000 (+0100) Subject: x86: A fast way to check capabilities of the current cpu X-Git-Tag: v3.0-rc1~396^2~32^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=349c004e3d31fda23ad225b61861be38047fff16;p=pandora-kernel.git x86: A fast way to check capabilities of the current cpu Add this_cpu_has() which determines if the current cpu has a certain ability using a segment prefix and a bit test operation. For that we need to add bit operations to x86s percpu.h. Many uses of cpu_has use a pointer passed to a function to determine the current flags. That is no longer necessary after this patch. However, this patch only converts the straightforward cases where cpu_has is used with this_cpu_ptr. The rest is work for later. -tj: Rolled up patch to add x86_ prefix and use percpu_read() instead of percpu_read_stable(). Signed-off-by: Christoph Lameter Acked-by: Tejun Heo Signed-off-by: Tejun Heo --- Reading git-diff-tree failed