aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-10-05 14:08:10 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-27 13:09:43 -0400
commit04d2aac33eb54fd3084140f2db130530d71e97c6 (patch)
tree1dcd39e36505ac9e713e862fb0a44f18add7a604 /arch/x86/kernel/setup.c
parentf8d56f1771e4867acc461146764b4feeb5245669 (diff)
x86: corruption-check: fix some style issues
Impact: cleanup Before moving the code to it's own file, fix some style issues in the corruption check code. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-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)