aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/setup.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 0fa6790c1dd3..4f38e0305b07 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -662,7 +662,7 @@ static void __init setup_bios_corruption_check(void)
662 662
663 corruption_check_size = round_up(corruption_check_size, PAGE_SIZE); 663 corruption_check_size = round_up(corruption_check_size, PAGE_SIZE);
664 664
665 while(addr < corruption_check_size && num_scan_areas < MAX_SCAN_AREAS) { 665 while (addr < corruption_check_size && num_scan_areas < MAX_SCAN_AREAS) {
666 u64 size; 666 u64 size;
667 addr = find_e820_area_size(addr, &size, PAGE_SIZE); 667 addr = find_e820_area_size(addr, &size, PAGE_SIZE);
668 668
@@ -701,11 +701,11 @@ void check_for_bios_corruption(void)
701 if (!memory_corruption_check) 701 if (!memory_corruption_check)
702 return; 702 return;
703 703
704 for(i = 0; i < num_scan_areas; i++) { 704 for (i = 0; i < num_scan_areas; i++) {
705 unsigned long *addr = __va(scan_areas[i].addr); 705 unsigned long *addr = __va(scan_areas[i].addr);
706 unsigned long size = scan_areas[i].size; 706 unsigned long size = scan_areas[i].size;
707 707
708 for(; size; addr++, size -= sizeof(unsigned long)) { 708 for (; size; addr++, size -= sizeof(unsigned long)) {
709 if (!*addr) 709 if (!*addr)
710 continue; 710 continue;
711 printk(KERN_ERR "Corrupted low memory at %p (%lx phys) = %08lx\n", 711 printk(KERN_ERR "Corrupted low memory at %p (%lx phys) = %08lx\n",
@@ -721,7 +721,8 @@ void check_for_bios_corruption(void)
721static void periodic_check_for_corruption(unsigned long data) 721static void periodic_check_for_corruption(unsigned long data)
722{ 722{
723 check_for_bios_corruption(); 723 check_for_bios_corruption();
724 mod_timer(&periodic_check_timer, round_jiffies(jiffies + corruption_check_period*HZ)); 724 mod_timer(&periodic_check_timer,
725 round_jiffies(jiffies + corruption_check_period*HZ));
725} 726}
726 727
727void start_periodic_check_for_corruption(void) 728void start_periodic_check_for_corruption(void)