projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9800794
)
sysdev: Convert the x86 mce tolerant sysdev attribute to generic attribute
author
Andi Kleen
<andi@firstfloor.org>
Tue, 1 Jul 2008 16:48:43 +0000
(18:48 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 22 Jul 2008 04:55:02 +0000
(21:55 -0700)
Use the new generic int attribute accessors for the x86 mce tolerant
attribute. Simple example to illustrate the new macros.
There are much more places all over the tree that could be converted
like this.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/cpu/mcheck/mce_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/mcheck/mce_64.c
b/arch/x86/kernel/cpu/mcheck/mce_64.c
index
e6a4d5f
..
9ab65be
100644
(file)
--- a/
arch/x86/kernel/cpu/mcheck/mce_64.c
+++ b/
arch/x86/kernel/cpu/mcheck/mce_64.c
@@
-812,12
+812,12
@@
static ssize_t set_trigger(struct sys_device *s, struct sysdev_attribute *attr,
}
static SYSDEV_ATTR(trigger, 0644, show_trigger, set_trigger);
-ACCESSOR(tolerant,tolerant,)
+static SYSDEV_INT_ATTR(tolerant, 0644, tolerant);
ACCESSOR(check_interval,check_interval,mce_restart())
static struct sysdev_attribute *mce_attributes[] = {
&attr_bank0ctl, &attr_bank1ctl, &attr_bank2ctl,
&attr_bank3ctl, &attr_bank4ctl, &attr_bank5ctl,
- &attr_tolerant, &attr_check_interval, &attr_trigger,
+ &attr_tolerant
.attr
, &attr_check_interval, &attr_trigger,
NULL
};