From d00ea9a1d9fe19449b43ccc5de364979cce4c29b Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Mon, 19 Jan 2004 20:59:17 -0800 Subject: [PATCH] [PATCH] Prevent false positives in non-fatal MCE check. non-fatal didn't get the same change that k7.c did a few months back, so it reads from banks that actually _cause_ MCEs. This patch also adds a bunch of copyright headers whilst we're in that neighborhood. --- arch/i386/kernel/cpu/mcheck/k7.c | 1 + arch/i386/kernel/cpu/mcheck/mce.c | 1 + arch/i386/kernel/cpu/mcheck/non-fatal.c | 15 ++++++++++++++- arch/i386/kernel/cpu/mcheck/p5.c | 1 + arch/i386/kernel/cpu/mcheck/p6.c | 1 + arch/i386/kernel/cpu/mcheck/winchip.c | 1 + 6 files changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/i386/kernel/cpu/mcheck/k7.c b/arch/i386/kernel/cpu/mcheck/k7.c index 486d16cf52ec9..304bf420f0f1d 100644 --- a/arch/i386/kernel/cpu/mcheck/k7.c +++ b/arch/i386/kernel/cpu/mcheck/k7.c @@ -1,5 +1,6 @@ /* * Athlon/Hammer specific Machine Check Exception Reporting + * (C) Copyright 2002 Dave Jones */ #include diff --git a/arch/i386/kernel/cpu/mcheck/mce.c b/arch/i386/kernel/cpu/mcheck/mce.c index 03271eda3770c..f8729415e4f2e 100644 --- a/arch/i386/kernel/cpu/mcheck/mce.c +++ b/arch/i386/kernel/cpu/mcheck/mce.c @@ -1,5 +1,6 @@ /* * mce.c - x86 Machine Check Exception Reporting + * (c) 2002 Alan Cox , Dave Jones */ #include diff --git a/arch/i386/kernel/cpu/mcheck/non-fatal.c b/arch/i386/kernel/cpu/mcheck/non-fatal.c index 099f9d2efe13c..204192b166f93 100644 --- a/arch/i386/kernel/cpu/mcheck/non-fatal.c +++ b/arch/i386/kernel/cpu/mcheck/non-fatal.c @@ -1,5 +1,10 @@ /* * Non Fatal Machine Check Exception Reporting + * + * (C) Copyright 2002 Dave Jones. + * + * This file contains routines to check for non-fatal MCEs every 15s + * */ #include @@ -21,6 +26,7 @@ static struct timer_list mce_timer; static int timerset; +static int firstbank; #define MCE_RATE 15*HZ /* timer rate is 15s */ @@ -30,7 +36,7 @@ static void mce_checkregs (void *info) int i; preempt_disable(); - for (i=0; i */ #include diff --git a/arch/i386/kernel/cpu/mcheck/p6.c b/arch/i386/kernel/cpu/mcheck/p6.c index e0baa8bc63f33..d63e9578c96c7 100644 --- a/arch/i386/kernel/cpu/mcheck/p6.c +++ b/arch/i386/kernel/cpu/mcheck/p6.c @@ -1,5 +1,6 @@ /* * P6 specific Machine Check Exception Reporting + * (C) Copyright 2002 Alan Cox */ #include diff --git a/arch/i386/kernel/cpu/mcheck/winchip.c b/arch/i386/kernel/cpu/mcheck/winchip.c index c529fdbb23b38..ddb579da43ddd 100644 --- a/arch/i386/kernel/cpu/mcheck/winchip.c +++ b/arch/i386/kernel/cpu/mcheck/winchip.c @@ -1,5 +1,6 @@ /* * IDT Winchip specific Machine Check Exception Reporting + * (C) Copyright 2002 Alan Cox */ #include -- 2.53.0