diff options
Diffstat (limited to 'arch/x86/kernel/cpu/mcheck/mce_amd.c')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_amd.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd.c b/arch/x86/kernel/cpu/mcheck/mce_amd.c index a7204ef37223..e5ed2c7cb4de 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd.c | |||
@@ -369,14 +369,10 @@ static ssize_t show_error_count(struct threshold_block *b, char *buf) | |||
369 | (THRESHOLD_MAX - b->threshold_limit))); | 369 | (THRESHOLD_MAX - b->threshold_limit))); |
370 | } | 370 | } |
371 | 371 | ||
372 | static ssize_t store_error_count(struct threshold_block *b, | 372 | static struct threshold_attr error_count = { |
373 | const char *buf, size_t count) | 373 | .attr = {.name = __stringify(error_count), .mode = 0444 }, |
374 | { | 374 | .show = show_error_count, |
375 | struct thresh_restart tr = { .b = b, .reset = 1, .old_limit = 0 }; | 375 | }; |
376 | |||
377 | smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1); | ||
378 | return 1; | ||
379 | } | ||
380 | 376 | ||
381 | #define RW_ATTR(val) \ | 377 | #define RW_ATTR(val) \ |
382 | static struct threshold_attr val = { \ | 378 | static struct threshold_attr val = { \ |
@@ -387,7 +383,6 @@ static struct threshold_attr val = { \ | |||
387 | 383 | ||
388 | RW_ATTR(interrupt_enable); | 384 | RW_ATTR(interrupt_enable); |
389 | RW_ATTR(threshold_limit); | 385 | RW_ATTR(threshold_limit); |
390 | RW_ATTR(error_count); | ||
391 | 386 | ||
392 | static struct attribute *default_attrs[] = { | 387 | static struct attribute *default_attrs[] = { |
393 | &threshold_limit.attr, | 388 | &threshold_limit.attr, |