This is a note to let you know that I've just added the patch titled
x86: Don't check for BIOS corruption in first 64K when there's no need to
to the 2.6.37-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
x86-don-t-check-for-bios-corruption-in-first-64k-when-there-s-no-need-to.patch
and it can be found in the queue-2.6.37 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From a7bd1dafdcc13ec7add4aafc927eb5e3a8d597e6 Mon Sep 17 00:00:00 2001
From: Naga Chumbalkar <[email protected]>
Date: Fri, 25 Feb 2011 20:31:55 +0000
Subject: x86: Don't check for BIOS corruption in first 64K when there's no need
to
From: Naga Chumbalkar <[email protected]>
commit a7bd1dafdcc13ec7add4aafc927eb5e3a8d597e6 upstream.
Due to commit 781c5a67f152c17c3e4a9ed9647f8c0be6ea5ae9 it is
likely that the number of areas to scan for BIOS corruption is 0
-- especially when the first 64K is already reserved
(X86_RESERVE_LOW is 64K by default).
If that's the case then don't set up the scan.
Signed-off-by: Naga Chumbalkar <[email protected]>
LKML-Reference:
<20110225202838.2229.71011.sendpatch...@nchumbalkar.americas.hpqcorp.net>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
arch/x86/kernel/check.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/arch/x86/kernel/check.c
+++ b/arch/x86/kernel/check.c
@@ -106,8 +106,8 @@ void __init setup_bios_corruption_check(
addr += size;
}
- printk(KERN_INFO "Scanning %d areas for low memory corruption\n",
- num_scan_areas);
+ if (num_scan_areas)
+ printk(KERN_INFO "Scanning %d areas for low memory
corruption\n", num_scan_areas);
}
@@ -143,12 +143,12 @@ static void check_corruption(struct work
{
check_for_bios_corruption();
schedule_delayed_work(&bios_check_work,
- round_jiffies_relative(corruption_check_period*HZ));
+ round_jiffies_relative(corruption_check_period*HZ));
}
static int start_periodic_check_for_corruption(void)
{
- if (!memory_corruption_check || corruption_check_period == 0)
+ if (!num_scan_areas || !memory_corruption_check ||
corruption_check_period == 0)
return 0;
printk(KERN_INFO "Scanning for low memory corruption every %d
seconds\n",
Patches currently in stable-queue which might be from
[email protected] are
queue-2.6.37/x86-don-t-check-for-bios-corruption-in-first-64k-when-there-s-no-need-to.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable