From: rostedt@goodmis.org (Steven Rostedt)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC][PATCH] ring-buffer: Replace this_cpu_{read,write} with this_cpu_ptr()
Date: Tue, 17 Mar 2015 10:11:13 -0400 [thread overview]
Message-ID: <20150317101113.32f5618a@gandalf.local.home> (raw)
In-Reply-To: <20150317081341.0f9a8b4c@gandalf.local.home>
On Tue, 17 Mar 2015 08:13:41 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
> > > I may go and remove all this_cpu_read,write() calls from my code
> > > because of this.
> >
> > You could do that with __this_cpo_* but not this_cpu_*(). Doing
> > it to this_cpu_* would make the operations no longer per cpu atomic. If
> > they do not need per cpu atomicity then you could have used __this_cpu_*
> > instead. And __this_cpu_* do not disable preemption or interrupts.
>
> I do not need it to be atomic.
I test this out with __this_cpu_* versions and see if that solves it
too. If it does, I'll use that version instead.
Thanks,
-- Steve
next prev parent reply other threads:[~2015-03-17 14:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 21:31 [RFC][PATCH] ring-buffer: Replace this_cpu_{read,write} with this_cpu_ptr() Steven Rostedt
2015-03-17 5:56 ` Christoph Lameter
2015-03-17 12:13 ` Steven Rostedt
2015-03-17 14:11 ` Steven Rostedt [this message]
2015-03-17 14:40 ` [PATCH v2] ring-buffer: Replace this_cpu_*() with __this_cpu_*() Steven Rostedt
2015-03-17 14:47 ` Uwe Kleine-König
2015-03-17 15:07 ` Steven Rostedt
2015-03-19 16:20 ` Christoph Lameter
2015-03-19 16:31 ` Steven Rostedt
2015-03-19 16:33 ` Christoph Lameter
2015-03-19 16:40 ` Steven Rostedt
2015-03-24 18:49 ` Christoph Lameter
2015-03-19 16:19 ` [RFC][PATCH] ring-buffer: Replace this_cpu_{read,write} with this_cpu_ptr() Christoph Lameter
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=20150317101113.32f5618a@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).