Re: [PATCH] x86: Replace uses of current_cpu_data with this_cpuops

From: Christoph Lameter
Date: Wed Dec 08 2010 - 10:33:49 EST


On Wed, 8 Dec 2010, Eric Dumazet wrote:

> > In the long run, it might be a good idea to remove cpu_data() macro
> > too and use per_cpu macro directly.
> >
>
> or introduce this_cpu_has() to remove the adress computation
>
> - if (cpu_has(__this_cpu_ptr(&cpu_info), X86_FEATURE_ARAT)) {
>
> + if (this_cpu_has(X86_FEATURE_ARAT)) {
>

The fundamental problem is that bitops require memory addresses which does
not work with per cpu ops.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/