From: Tejun Heo <tj@kernel.org>
To: Christoph Lameter <cl@gentwo.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm: percpu: micro-optimize round-to-even
Date: Thu, 19 Jun 2014 10:34:58 -0400 [thread overview]
Message-ID: <20140619143458.GF26904@htj.dyndns.org> (raw)
In-Reply-To: <alpine.DEB.2.11.1406190925430.2785@gentwo.org>
On Thu, Jun 19, 2014 at 09:29:52AM -0500, Christoph Lameter wrote:
> > > - if (unlikely(size & 1))
> > > - size++;
> > > + size += size & 1;
> >
> > I'm not gonna apply this. This isn't that hot a path. It's not
> > worthwhile to micro optimize code like this.
>
> Dont we have an ALIGN() macro for this?
Indeed, a patch?
--
tejun
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2014-06-19 14:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 10:02 [PATCH] mm: percpu: micro-optimize round-to-even Rasmus Villemoes
2014-06-19 13:25 ` Tejun Heo
2014-06-19 13:27 ` Tejun Heo
2014-06-19 14:29 ` Christoph Lameter
2014-06-19 14:34 ` Tejun Heo [this message]
2014-06-19 14:59 ` Christoph Lameter
2014-06-19 15:01 ` Tejun Heo
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=20140619143458.GF26904@htj.dyndns.org \
--to=tj@kernel.org \
--cc=cl@gentwo.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux@rasmusvillemoes.dk \
/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).