From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756723AbYERKPm (ORCPT ); Sun, 18 May 2008 06:15:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752661AbYERKPf (ORCPT ); Sun, 18 May 2008 06:15:35 -0400 Received: from one.firstfloor.org ([213.235.205.2]:59717 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752160AbYERKPe (ORCPT ); Sun, 18 May 2008 06:15:34 -0400 Message-ID: <483001C4.1010801@firstfloor.org> Date: Sun, 18 May 2008 12:15:32 +0200 From: Andi Kleen User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Thomas Gleixner CC: "Maciej W. Rozycki" , Tom Spink , Cyrill Gorcunov , Ingo Molnar , "H. Peter Anvin" , LKML , Jiri Slaby , Sam Ravnborg Subject: Re: [RFC] x86: merge nmi_32-64 to nmi.c References: <20080517192200.GA6914@cvg> <7b9198260805171328u555eec17t3597f3378edbda88@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Definitely, but we should do it at the Kconfig level which allows us > to have integer defines as well, so we end up with something like: > > static inline unsigned int get_nmi_count(int cpu) > { > return CONFIG_X86_64 ? cpu_pda(cpu)->__nmi_count : nmi_count(cpu); > } #ifdef CONFIG_X86_64 would evaluate true even with CONFIG_X86_64 == 0 -Andi