Skip to content

Commit

Permalink
x86: corruption-check: fix some style issues
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Oct 27, 2008
1 parent f8d56f1 commit 04d2aac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ static void __init setup_bios_corruption_check(void)

corruption_check_size = round_up(corruption_check_size, PAGE_SIZE);

while(addr < corruption_check_size && num_scan_areas < MAX_SCAN_AREAS) {
while (addr < corruption_check_size && num_scan_areas < MAX_SCAN_AREAS) {
u64 size;
addr = find_e820_area_size(addr, &size, PAGE_SIZE);

Expand Down Expand Up @@ -701,11 +701,11 @@ void check_for_bios_corruption(void)
if (!memory_corruption_check)
return;

for(i = 0; i < num_scan_areas; i++) {
for (i = 0; i < num_scan_areas; i++) {
unsigned long *addr = __va(scan_areas[i].addr);
unsigned long size = scan_areas[i].size;

for(; size; addr++, size -= sizeof(unsigned long)) {
for (; size; addr++, size -= sizeof(unsigned long)) {
if (!*addr)
continue;
printk(KERN_ERR "Corrupted low memory at %p (%lx phys) = %08lx\n",
Expand All @@ -721,7 +721,8 @@ void check_for_bios_corruption(void)
static void periodic_check_for_corruption(unsigned long data)
{
check_for_bios_corruption();
mod_timer(&periodic_check_timer, round_jiffies(jiffies + corruption_check_period*HZ));
mod_timer(&periodic_check_timer,
round_jiffies(jiffies + corruption_check_period*HZ));
}

void start_periodic_check_for_corruption(void)
Expand Down

0 comments on commit 04d2aac

Please sign in to comment.