From: Ingo Molnar <mingo@elte.hu>
To: Jan Beulich <jbeulich@novell.com>
Cc: tglx@linutronix.de, Andrew Morton <akpm@linux-foundation.org>,
mingo@redhat.com, linux-kernel@vger.kernel.org, hpa@zytor.com
Subject: Re: [PATCH] x86-64: make pda's cpunumber and nodenumber unsigned
Date: Mon, 17 Dec 2007 15:53:17 +0100 [thread overview]
Message-ID: <20071217145317.GD16604@elte.hu> (raw)
In-Reply-To: <476689AF.76E4.0078.0@novell.com>
* Jan Beulich <jbeulich@novell.com> wrote:
> > good catch! Applied your patch to x86.git - queued it up for
> > v2.6.25. I bet there are tons of other instances where we use signed
> > instead of unsigned and get worse code generation.
>
> Yes, definitely. This patch was kind of a testing one whether this is
> a welcome change. As it appears to be, I'll probably produce more as I
> run into respective cases.
they are definitely welcome! Especially when fields are also used in
integer multiplications or divisions then the cost of signedness can be
quite significant. We regularly do such int -> uint sweeps in the
scheduler code and it's a great code size reductor.
Btw., a sidenote: if you are touching files that you care about, and if
you've got a few spare cycles, you might also want to take a look at
checkpatch.pl output:
$ scripts/checkpatch.pl --file include/asm-x86/pda.h
...
total: 23 errors, 1 warnings, 133 lines checked
as it might have a few low hanging fruits ripe for cleanup ;-)
Ingo
next prev parent reply other threads:[~2007-12-17 14:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-13 9:10 [PATCH] x86-64: make pda's cpunumber and nodenumber unsigned Jan Beulich
2007-12-17 13:26 ` Ingo Molnar
2007-12-17 13:37 ` Jan Beulich
2007-12-17 14:53 ` Ingo Molnar [this message]
2007-12-17 15:34 ` Cyrill Gorcunov
2007-12-17 16:00 ` Ingo Molnar
2007-12-17 16:01 ` Ingo Molnar
2007-12-17 16:10 ` Cyrill Gorcunov
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=20071217145317.GD16604@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=jbeulich@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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