diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/percpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index c80cfe1260e..1fdaee93c04 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -108,9 +108,10 @@ static inline void percpu_free(void *__pdata) | |||
108 | 108 | ||
109 | /* (legacy) interface for use without CPU hotplug handling */ | 109 | /* (legacy) interface for use without CPU hotplug handling */ |
110 | 110 | ||
111 | #define __alloc_percpu(size) percpu_alloc_mask((size), GFP_KERNEL, \ | 111 | #define __alloc_percpu(size, align) percpu_alloc_mask((size), GFP_KERNEL, \ |
112 | cpu_possible_map) | 112 | cpu_possible_map) |
113 | #define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type)) | 113 | #define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \ |
114 | __alignof__(type)) | ||
114 | #define free_percpu(ptr) percpu_free((ptr)) | 115 | #define free_percpu(ptr) percpu_free((ptr)) |
115 | /* | 116 | /* |
116 | * Use this to get to a cpu's version of the per-cpu object dynamically | 117 | * Use this to get to a cpu's version of the per-cpu object dynamically |