WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] IRQ Cleanup: rename nr_ioapic_registers to nr_i

To: "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] IRQ Cleanup: rename nr_ioapic_registers to nr_ioapic_entries
From: "Jan Beulich" <JBeulich@xxxxxxxx>
Date: Mon, 26 Sep 2011 16:40:09 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 26 Sep 2011 08:41:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E809709.5060602@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6896ad0a17986a06a470.1317048538@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <4E80AF140200007800057DA4@xxxxxxxxxxxxxxxxxxxx> <4E809709.5060602@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> On 26.09.11 at 17:15, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
> On 26/09/11 15:57, Jan Beulich wrote:
>>>>> On 26.09.11 at 16:48, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
>>> The name "nr_ioapic_registers" is wrong and actively misleading.  The
>>> variable holds the number of redirection entries for each apic, which
>>> is two registers fewer than the total number of registers.
>> To be honest, this is the kind of renaming that I wouldn't want to do
>> as long as Linux, from where the code originates, continues to use
>> the prior name (no matter whether you consider it misleading).
>>
>> Jan
> 
> I guess it depends on whether you consider that we should stay in line
> with Linux or not.  While the code did start in Linux, it has diverged
> so far that it really is its own file now.
> 
> Either we should un-diverge from Linux (unlikely to happen), or consider
> it properly forked and not worry; staying in this intermediate state is
> not sustainable and leads to keeping misleading bits about while an
> overhaul is needed.

There's one more alternative: You could propose the same renaming
on Linux.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel