linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* upcoming percpu changes
@ 2010-02-05  5:16 Stephen Rothwell
  2010-02-05  5:48 ` Tejun Heo
  2010-02-12  8:21 ` Tejun Heo
  0 siblings, 2 replies; 8+ messages in thread
From: Stephen Rothwell @ 2010-02-05  5:16 UTC (permalink / raw)
  To: Linus
  Cc: Andrew Morton, linux-next, LKML, Tejun Heo, Rusty Russell,
	Christoph Lameter, Ingo Molnar

[-- Attachment #1: Type: text/plain, Size: 2173 bytes --]

Hi Linus,

The percpu tree currently in linux-next
(git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git#for-next)
contains a patch to remove the "per_cpu_" prefix from percpu variables
followed by  a set of patches to annotate all the percpu variables (and
accessing variables) with a __percpu tag to put them into a separate
sparse name space.  These latter patches are causing some merge conflicts
with a couple of trees (and will most likely cause more before the merge
window).  A solution to this is for you to accept the patch below into
your tree now and then the annotating patches can be sent to the
respective maintainers directly.

Of course, this assumes that you will accept the percpu changes during
the next merge window (and they are not completely without controversy)
and the proponents actually submit them :-).

What do you think?

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 5 Feb 2010 16:09:11 +1100
Subject: [PATCH] percpu: add __percpu for sparse

This is to make the annotation of percpu variables during the next merge
window less painfull.

Extracted from a patch by Rusty Russell.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 include/linux/compiler.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 5be3dab..188fcae 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -15,6 +15,7 @@
 # define __acquire(x)	__context__(x,1)
 # define __release(x)	__context__(x,-1)
 # define __cond_lock(x,c)	((c) ? ({ __acquire(x); 1; }) : 0)
+# define __percpu	__attribute__((noderef, address_space(3)))
 extern void __chk_user_ptr(const volatile void __user *);
 extern void __chk_io_ptr(const volatile void __iomem *);
 #else
@@ -32,6 +33,7 @@ extern void __chk_io_ptr(const volatile void __iomem *);
 # define __acquire(x) (void)0
 # define __release(x) (void)0
 # define __cond_lock(x,c) (c)
+# define __percpu
 #endif
 
 #ifdef __KERNEL__
-- 
1.6.6.1

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-12 13:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05  5:16 upcoming percpu changes Stephen Rothwell
2010-02-05  5:48 ` Tejun Heo
2010-02-05  7:09   ` Ingo Molnar
2010-02-05  7:31     ` Tejun Heo
2010-02-05  7:29       ` Ingo Molnar
2010-02-12  8:21 ` Tejun Heo
2010-02-12 11:10   ` Stephen Rothwell
2010-02-12 13:23     ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).