Re: [PATCH 3/3] [UDP6]: Counter increment on BH mode

From: Christoph Lameter
Date: Mon Dec 17 2007 - 15:08:54 EST


On Sun, 16 Dec 2007, Herbert Xu wrote:

> If we can get the address of the per-cpu counter against
> some sort of a per-cpu base pointer, e.g., %gs on x86, then
> we can do
>
> incq %gs:(%rax)
>
> where %rax would be the offset with %gs as the base. This would
> obviate the need for the CPU ID and therefore avoid disabling
> preemption.
>
> Hmm, wasn't Christoph working on something like that?

Yes that is what the cpu alloc patchset implements.

--
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/