Re: [PATCH] FRV: Fix the section attribute on UP DECLARE_PER_CPU()

From: Ingo Molnar
Date: Wed Apr 22 2009 - 05:14:34 EST



* David Howells <dhowells@xxxxxxxxxx> wrote:

> Any idea what this:
>
> #define DEFINE_PER_CPU_SHARED_ALIGNED(type, name)
>
> is intended for?

it is a mixed type of percpu variable: which is per CPU but which
can (and will) also be accessed from other CPUs. This way we
basically cache-line align it and make sure nearby percpu variables
dont get caught up in any cacheline bounces. It was introduced a
couple of years ago.

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