From: "Jan Beulich" <JBeulich@novell.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: <mingo@elte.hu>, "Yinghai Lu" <yinghai@kernel.org>,
<tglx@linutronix.de>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86-64: more fixes and cleanup to AMD Fam10 MMCONF enabling
Date: Mon, 08 Nov 2010 16:43:48 +0000 [thread overview]
Message-ID: <4CD836D40200007800020F4E@vpn.id2.novell.com> (raw)
In-Reply-To: <4CD82195.6080905@zytor.com>
>>> On 08.11.10 at 17:13, "H. Peter Anvin" <hpa@zytor.com> wrote:
> On 11/05/2010 03:59 AM, Jan Beulich wrote:
>>
>> --- 2.6.37-rc1-x86_64-mmconf-fam10h.orig/arch/x86/kernel/mmconf-fam10h_64.c
>> +++ 2.6.37-rc1-x86_64-mmconf-fam10h/arch/x86/kernel/mmconf-fam10h_64.c
>> @@ -43,7 +43,7 @@ static int __cpuinit cmp_range(const voi
>> return start1 - start2;
>> }
>>
>> -#define UNIT (1ULL << (5 + 3 + 12))
>> +#define UNIT (1ULL << FAM10H_MMIO_CONF_BASE_SHIFT)
>> #define MASK (~(UNIT - 1))
>> #define SIZE (UNIT << 8)
>
> Could we avoid macros named UNIT, MASK, and SIZE at all? I realize
> they're already in the code, but still...
I could understand if these were definition in a header, but why
do you think we need to have unnecessarily long identifiers (e.g.
by prefixing all of the defines here with FAM10H_MMIO_CONF_BASE_)
in places like this? After all, one of the two goals of using a macro
here at all is to keep things small and simple...
But sure, if just the names hinder acceptance, I can fold this and
the original patches together and use less ambiguous names.
Jan
prev parent reply other threads:[~2010-11-08 16:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-05 10:59 Jan Beulich
2010-11-05 13:07 ` Andreas Herrmann
2010-11-05 13:13 ` Jan Beulich
2010-11-05 17:51 ` Yinghai Lu
2010-11-08 8:04 ` Jan Beulich
2010-11-10 19:22 ` Yinghai Lu
2010-11-08 16:13 ` H. Peter Anvin
2010-11-08 16:43 ` Jan Beulich [this message]
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=4CD836D40200007800020F4E@vpn.id2.novell.com \
--to=jbeulich@novell.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=yinghai@kernel.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
all inboxes | Powered by JetHome®