aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/check.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2008-10-05 12:21:32 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-27 18:09:45 +0100
commitb43d196c4d3fe46d6dda7c987c47792612b80b1b (patch)
treeea6fe8d4ea629828c38b961ede4a72ffaf47e3b9 /arch/x86/kernel/check.c
parent304e629bf4a3150a0bf6556fc45c52c5c082340f (diff)
x86: corruption-check: some post-move cleanups
Impact: cleanup now that the code is moved and converted to a work queue, there's some minor cleanups that can be done. 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/check.c')
-rw-r--r--arch/x86/kernel/check.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/x86/kernel/check.c b/arch/x86/kernel/check.c
index 55eed1752b4..2ac0ab71412 100644
--- a/arch/x86/kernel/check.c
+++ b/arch/x86/kernel/check.c
@@ -11,7 +11,6 @@
* remaining free memory in that area and fill it with a distinct
* pattern.
*/
-#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION
#define MAX_SCAN_AREAS 8
static int __read_mostly memory_corruption_check = -1;
@@ -23,7 +22,7 @@ static struct e820entry scan_areas[MAX_SCAN_AREAS];
static int num_scan_areas;
-static int set_corruption_check(char *arg)
+static __init int set_corruption_check(char *arg)
{
char *end;
@@ -33,7 +32,7 @@ static int set_corruption_check(char *arg)
}
early_param("memory_corruption_check", set_corruption_check);
-static int set_corruption_check_period(char *arg)
+static __init int set_corruption_check_period(char *arg)
{
char *end;
@@ -43,7 +42,7 @@ static int set_corruption_check_period(char *arg)
}
early_param("memory_corruption_check_period", set_corruption_check_period);
-static int set_corruption_check_size(char *arg)
+static __init int set_corruption_check_size(char *arg)
{
char *end;
unsigned size;
@@ -115,8 +114,6 @@ void check_for_bios_corruption(void)
int i;
int corruption = 0;
- printk("dot\n");
-
if (!memory_corruption_check)
return;
@@ -134,7 +131,7 @@ void check_for_bios_corruption(void)
}
}
- WARN(corruption, KERN_ERR "Memory corruption detected in low memory\n");
+ WARN_ONCE(corruption, KERN_ERR "Memory corruption detected in low memory\n");
}
static void check_corruption(struct work_struct *dummy);
@@ -161,5 +158,4 @@ static int start_periodic_check_for_corruption(void)
}
module_init(start_periodic_check_for_corruption);
-#endif