Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932947AbXBLDgZ (ORCPT ); Sun, 11 Feb 2007 22:36:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932948AbXBLDgZ (ORCPT ); Sun, 11 Feb 2007 22:36:25 -0500 Received: from ozlabs.org ([203.10.76.45]:50855 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932947AbXBLDgY (ORCPT ); Sun, 11 Feb 2007 22:36:24 -0500 Subject: [PATCH 4/7] cleanup: Move mce_disabled to asm/mce.h From: Rusty Russell To: Andrew Morton Cc: lkml - Kernel Mailing List , virtualization , Paul Mackerras In-Reply-To: <1171251258.10409.7.camel@localhost.localdomain> References: <1171251120.10409.2.camel@localhost.localdomain> <1171251185.10409.4.camel@localhost.localdomain> <1171251258.10409.7.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 12 Feb 2007 14:35:35 +1100 Message-Id: <1171251335.10409.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 36 Allows external actors to disable mce. Signed-off-by: Rusty Russell =================================================================== --- a/arch/i386/kernel/cpu/mcheck/mce.h +++ b/arch/i386/kernel/cpu/mcheck/mce.h @@ -1,4 +1,5 @@ #include +#include void amd_mcheck_init(struct cpuinfo_x86 *c); void intel_p4_mcheck_init(struct cpuinfo_x86 *c); @@ -9,6 +10,5 @@ void winchip_mcheck_init(struct cpuinfo_ /* Call the installed machine check handler for this CPU setup. */ extern fastcall void (*machine_check_vector)(struct pt_regs *, long error_code); -extern int mce_disabled; extern int nr_mce_banks; =================================================================== --- a/include/asm-i386/mce.h +++ b/include/asm-i386/mce.h @@ -3,3 +3,5 @@ extern void mcheck_init(struct cpuinfo_x #else #define mcheck_init(c) do {} while(0) #endif + +extern int mce_disabled; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/