]> err.no Git - linux-2.6/blobdiff - include/linux/percpu.h
pci/irq: let pci_device_shutdown to call pci_msi_shutdown v2
[linux-2.6] / include / linux / percpu.h
index 00412bb494c40b100bc1e996983b72ba877ccf69..1ac969724bb2fff929c397be1cbdcdf007a61953 100644 (file)
@@ -9,10 +9,6 @@
 
 #include <asm/percpu.h>
 
-#ifndef PER_CPU_ATTRIBUTES
-#define PER_CPU_ATTRIBUTES
-#endif
-
 #ifdef CONFIG_SMP
 #define DEFINE_PER_CPU(type, name)                                     \
        __attribute__((__section__(".data.percpu")))                    \
@@ -58,7 +54,7 @@
 #ifdef CONFIG_SMP
 
 struct percpu_data {
-       void *ptrs[NR_CPUS];
+       void *ptrs[1];
 };
 
 #define __percpu_disguise(pdata) (struct percpu_data *)~(unsigned long)(pdata)