From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758182AbYERMHp (ORCPT ); Sun, 18 May 2008 08:07:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753535AbYERMHi (ORCPT ); Sun, 18 May 2008 08:07:38 -0400 Received: from rv-out-0506.google.com ([209.85.198.225]:48018 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753376AbYERMHh (ORCPT ); Sun, 18 May 2008 08:07:37 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vdsoitLbWJNfrsqAj250n+wmuy2GByxdYnbEpCMvMkarPMXjMCEq6VBVeesuI/s49h2KGJEvDtjEqH7r3LMs3zIKFgNO7F/49BmfwBJBXZEMYIaRfBr/4vwXGWJ5Lo4/L5wbMRCiBnZK6CJwK8tQhEMJmbDpkdOVkcLytB7Zi5s= Message-ID: <7b9198260805180507r67d7aff3u339ff873e8893096@mail.gmail.com> Date: Sun, 18 May 2008 13:07:37 +0100 From: "Tom Spink" To: "Cyrill Gorcunov" Subject: Re: [RFC] x86: merge nmi_32-64 to nmi.c Cc: "Andi Kleen" , "Thomas Gleixner" , "Maciej W. Rozycki" , "Ingo Molnar" , "H. Peter Anvin" , LKML , "Jiri Slaby" , "Sam Ravnborg" In-Reply-To: <20080518102914.GI6948@cvg> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080517192200.GA6914@cvg> <7b9198260805171328u555eec17t3597f3378edbda88@mail.gmail.com> <483001C4.1010801@firstfloor.org> <20080518102015.GH6948@cvg> <48300426.8080300@firstfloor.org> <20080518102914.GI6948@cvg> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2008/5/18 Cyrill Gorcunov : > [Andi Kleen - Sun, May 18, 2008 at 12:25:42PM +0200] > | Cyrill Gorcunov wrote: > | > | > yes, but what to do with absence of __nmi_count on 32bit and die_nmi > | > uses different number of args? gcc follows both pathes anyway trying > | > to evaluate where I prefer it would not... I mean I've got errors > | > on compiling procedue 'cause of different number of args for die_nmi > | > used in 32bit mode. That is why I've asked Thomas if it possible to > | > add "panic" boot option for 32bit mode and make it familiar with 64bit > | > mode and merge them eventually. > | > | Sorry just pointed out why the Kconfig idea doesn't work, nothing more. > | > | If you want to avoid ifdefs then you have to unify the functionality > | first. Putting syntactical sugar on ifdefs doesn't make sense. > | > | I haven't kept track of the exact state of the code, but if the per cpu > | data macros are finally as efficient as the PDA you could move the > | nmi_count to per_cpu in both for once. > | > | -Andi > | > > ok, thanks > > - Cyrill - > It looks, though, that the unification of traps_{32,64}.c might help eliminate some of these conditionals. After a quick glance, at the traps source, certainly the __die_nmi helper might even be eliminated. -- Regards, Tom Spink