Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312791
b: refs/heads/master
c: 6e92736
h: refs/heads/master
i:
  312789: efdc687
  312787: b61655d
  312783: a3e5e16
v: v3
  • Loading branch information
Borislav Petkov committed Jun 7, 2012
1 parent 9902471 commit 15a1718
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c9c42fa98c283961b7f6b6542fb4bf0c0539e15
refs/heads/master: 6e927361bd403dbf5f6a2668a2a07df1f1b2daff
13 changes: 4 additions & 9 deletions trunk/arch/x86/kernel/cpu/mcheck/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,10 @@ static ssize_t show_error_count(struct threshold_block *b, char *buf)
(THRESHOLD_MAX - b->threshold_limit)));
}

static ssize_t store_error_count(struct threshold_block *b,
const char *buf, size_t count)
{
struct thresh_restart tr = { .b = b, .reset = 1, .old_limit = 0 };

smp_call_function_single(b->cpu, threshold_restart_bank, &tr, 1);
return 1;
}
static struct threshold_attr error_count = {
.attr = {.name = __stringify(error_count), .mode = 0444 },
.show = show_error_count,
};

#define RW_ATTR(val) \
static struct threshold_attr val = { \
Expand All @@ -387,7 +383,6 @@ static struct threshold_attr val = { \

RW_ATTR(interrupt_enable);
RW_ATTR(threshold_limit);
RW_ATTR(error_count);

static struct attribute *default_attrs[] = {
&threshold_limit.attr,
Expand Down

0 comments on commit 15a1718

Please sign in to comment.