1
0
Fork 0
alistair23-linux/arch
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
..
alpha Merge branch 'generic-ipi' into generic-ipi-for-linus 2008-07-15 21:55:59 +02:00
arm sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
avr32 sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
blackfin Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-07-18 02:39:39 -07:00
cris Merge branch 'for-linus' of git://www.jni.nu/cris 2008-07-20 17:37:46 -07:00
frv PCI: remove unused arch pcibios_update_resource() functions 2008-06-27 13:14:01 -07:00
h8300 [PATCH] take init_files to fs/file.c 2008-05-16 17:22:20 -04:00
ia64 sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
m32r smp_call_function: get rid of the unused nonatomic/retry argument 2008-06-26 11:24:35 +02:00
m68k arch/m68k/mm/sun3mmu.c: Eliminate NULL test and memset after alloc_bootmem 2008-07-20 17:24:40 -07:00
m68knommu Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
mips device create: mips: convert device_create to device_create_drvdata 2008-07-21 21:54:43 -07:00
mn10300 MN10300: Fix MN10300's serial port driver to get at its tty_struct 2008-07-20 17:12:35 -07:00
parisc Merge branch 'generic-ipi' into generic-ipi-for-linus 2008-07-15 21:55:59 +02:00
powerpc sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
s390 sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
sh sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
sparc sparc: Remove Sparc's asm-offsets for sclow.S 2008-07-19 00:44:32 -07:00
sparc64 sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
um Merge branch 'generic-ipi' into generic-ipi-for-linus 2008-07-15 21:55:59 +02:00
v850 [PATCH] take init_files to fs/file.c 2008-05-16 17:22:20 -04:00
x86 sysdev: Pass the attribute to the low level sysdev show/store function 2008-07-21 21:55:02 -07:00
xtensa [PATCH] take init_files to fs/file.c 2008-05-16 17:22:20 -04:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig Add generic helpers for arch IPI function calls 2008-06-26 11:21:34 +02:00