Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7bd1daf authored by Naga Chumbalkar's avatar Naga Chumbalkar Committed by Ingo Molnar
Browse files

x86: Don't check for BIOS corruption in first 64K when there's no need to



Due to commit 781c5a67 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: default avatarNaga Chumbalkar <nagananda.chumbalkar@hp.com>
Cc: <stable@kernel.org>
LKML-Reference: <20110225202838.2229.71011.sendpatchset@nchumbalkar.americas.hpqcorp.net>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 54712622
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -106,8 +106,8 @@ void __init setup_bios_corruption_check(void)
		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);
}


@@ -148,7 +148,7 @@ static void check_corruption(struct work_struct *dummy)

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",