Christoph Lameter 349c004e3d 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 <cl@linux.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
2011-03-29 10:18:30 +02:00
..
2011-03-23 02:34:54 -04:00
2011-03-18 10:39:30 +01:00
2011-03-18 10:39:30 +01:00
2010-07-21 11:33:27 -07:00
2011-03-18 10:39:30 +01:00
2010-08-27 11:12:29 -07:00
2011-03-12 14:12:00 +01:00
2011-03-18 10:39:30 +01:00
2011-02-17 14:59:22 +01:00
2011-03-18 10:39:30 +01:00
2010-09-22 16:33:03 -04:00
2011-03-18 10:39:30 +01:00
2011-01-13 17:32:39 -08:00
2011-03-18 10:39:30 +01:00
2010-10-27 18:03:10 -07:00
2011-02-23 22:27:55 +01:00
2011-03-18 10:39:30 +01:00
2011-01-13 17:32:40 -08:00
2011-03-18 10:39:30 +01:00
2011-01-07 15:08:53 +01:00
2011-03-18 10:39:30 +01:00
2011-03-18 10:39:30 +01:00
2011-01-13 17:32:41 -08:00
2011-03-18 10:39:30 +01:00