From: Rusty Russell <rusty@rustcorp.com.au>
To: rth@twiddle.net
Cc: linux-kernel@vger.kernel.org
Subject: per-cpu data...
Date: Fri, 12 Jul 2002 16:01:52 +1000 [thread overview]
Message-ID: <20020712062058.25F21415D@lists.samba.org> (raw)
IIUC, __per_cpu_data is insufficient for Alpha as stands, to use
thread-specific gcc tricks (__thread prepended to the decl, even
though they had a perfectly good __attribute__ extension already).
So, I guess we're stuck with something like:
DECLARE_PER_CPU(int x);
If we're going to do this, we can also mangle the name as well to
avoid accidental "direct" accesses:
eg:
#define DECLARE_PER_CPU(var)
var##__percpu __attribute__((section(".percpu")))
/* If not SMP: */
#define per_cpu(var) var##__percpu
(From my reading, ## on "int x" and "__per_cpu" is well-defined).
Thoughts?
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
next reply other threads:[~2002-07-12 6:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-12 6:01 Rusty Russell [this message]
2002-07-12 8:21 ` Richard Henderson
2002-07-24 12:31 ` Jamie Lokier
2002-07-25 0:28 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020712062058.25F21415D@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®