diff options
Diffstat (limited to 'arch/x86/kernel/check.c')
-rw-r--r-- | arch/x86/kernel/check.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/x86/kernel/check.c b/arch/x86/kernel/check.c index 55eed1752b43..2ac0ab71412a 100644 --- a/arch/x86/kernel/check.c +++ b/arch/x86/kernel/check.c | |||
@@ -11,7 +11,6 @@ | |||
11 | * remaining free memory in that area and fill it with a distinct | 11 | * remaining free memory in that area and fill it with a distinct |
12 | * pattern. | 12 | * pattern. |
13 | */ | 13 | */ |
14 | #ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION | ||
15 | #define MAX_SCAN_AREAS 8 | 14 | #define MAX_SCAN_AREAS 8 |
16 | 15 | ||
17 | static int __read_mostly memory_corruption_check = -1; | 16 | static int __read_mostly memory_corruption_check = -1; |
@@ -23,7 +22,7 @@ static struct e820entry scan_areas[MAX_SCAN_AREAS]; | |||
23 | static int num_scan_areas; | 22 | static int num_scan_areas; |
24 | 23 | ||
25 | 24 | ||
26 | static int set_corruption_check(char *arg) | 25 | static __init int set_corruption_check(char *arg) |
27 | { | 26 | { |
28 | char *end; | 27 | char *end; |
29 | 28 | ||
@@ -33,7 +32,7 @@ static int set_corruption_check(char *arg) | |||
33 | } | 32 | } |
34 | early_param("memory_corruption_check", set_corruption_check); | 33 | early_param("memory_corruption_check", set_corruption_check); |
35 | 34 | ||
36 | static int set_corruption_check_period(char *arg) | 35 | static __init int set_corruption_check_period(char *arg) |
37 | { | 36 | { |
38 | char *end; | 37 | char *end; |
39 | 38 | ||
@@ -43,7 +42,7 @@ static int set_corruption_check_period(char *arg) | |||
43 | } | 42 | } |
44 | early_param("memory_corruption_check_period", set_corruption_check_period); | 43 | early_param("memory_corruption_check_period", set_corruption_check_period); |
45 | 44 | ||
46 | static int set_corruption_check_size(char *arg) | 45 | static __init int set_corruption_check_size(char *arg) |
47 | { | 46 | { |
48 | char *end; | 47 | char *end; |
49 | unsigned size; | 48 | unsigned size; |
@@ -115,8 +114,6 @@ void check_for_bios_corruption(void) | |||
115 | int i; | 114 | int i; |
116 | int corruption = 0; | 115 | int corruption = 0; |
117 | 116 | ||
118 | printk("dot\n"); | ||
119 | |||
120 | if (!memory_corruption_check) | 117 | if (!memory_corruption_check) |
121 | return; | 118 | return; |
122 | 119 | ||
@@ -134,7 +131,7 @@ void check_for_bios_corruption(void) | |||
134 | } | 131 | } |
135 | } | 132 | } |
136 | 133 | ||
137 | WARN(corruption, KERN_ERR "Memory corruption detected in low memory\n"); | 134 | WARN_ONCE(corruption, KERN_ERR "Memory corruption detected in low memory\n"); |
138 | } | 135 | } |
139 | 136 | ||
140 | static void check_corruption(struct work_struct *dummy); | 137 | static void check_corruption(struct work_struct *dummy); |
@@ -161,5 +158,4 @@ static int start_periodic_check_for_corruption(void) | |||
161 | } | 158 | } |
162 | 159 | ||
163 | module_init(start_periodic_check_for_corruption); | 160 | module_init(start_periodic_check_for_corruption); |
164 | #endif | ||
165 | 161 | ||