lkml.org 
[lkml]   [2009]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] FRV: Fix the section attribute on UP DECLARE_PER_CPU()

* David Howells <dhowells@redhat.com> 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


\
 
 \ /
  Last update: 2009-04-22 11:17    [W:0.359 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site