linux/arch/x86/kernel/cpu/mcheck
Andi Kleen 4a0b2b4dbe sysdev: Pass the attribute to the low level sysdev show/store function
This allow to dynamically generate attributes and share show/store
functions between attributes. Right now most attributes are generated
by special macros and lots of duplicated code. With the attribute
passed it's instead possible to attach some data to the attribute
and then use that in shared low level functions to do different things.

I need this for the dynamically generated bank attributes in the x86
machine check code, but it'll allow some further cleanups.

I converted all users in tree to the new show/store prototype. It's a single
huge patch to avoid unbisectable sections.

Runtime tested: x86-32, x86-64
Compiled only: ia64, powerpc
Not compile tested/only grep converted: sh, arm, avr32

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-07-21 21:55:02 -07:00
..
k7.c x86: coding style fixes to arch/x86/kernel/cpu/mcheck/k7.c 2008-06-18 15:00:12 +02:00
Makefile x86: consolidate the cpu/ related code usage 2007-10-23 22:37:23 +02:00
mce_32.c x86: coding style fixes to arch/x86/kernel/cpu/mcheck/mce_32.c 2008-04-17 17:40:50 +02:00
mce_64.c sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
mce_amd_64.c generic: reduce stack pressure in sched_affinity 2008-04-19 19:44:59 +02:00
mce_intel_64.c x86: consolidate the cpu/ related code usage 2007-10-23 22:37:23 +02:00
mce.h x86: remove all definitions with fastcall 2008-01-30 13:31:17 +01:00
non-fatal.c on_each_cpu(): kill unused 'retry' parameter 2008-06-26 11:24:38 +02:00
p4.c x86: APIC: remove apic_write_around(); use alternatives 2008-07-18 12:51:21 +02:00
p5.c x86: coding style fixes to arch/x86/kernel/cpu/mcheck/p5.c 2008-04-17 17:40:48 +02:00
p6.c x86: coding style fixes to arch/x86/kernel/cpu/mcheck/p6.c 2008-04-17 17:40:49 +02:00
therm_throt.c sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
winchip.c x86: coding style fixes to arch/x86/kernel/cpu/mcheck/winchip.c 2008-04-17 17:40:50 +02:00