|
@@ -108,9 +108,10 @@ static inline void percpu_free(void *__pdata)
|
|
|
|
|
|
/* (legacy) interface for use without CPU hotplug handling */
|
|
|
|
|
|
-#define __alloc_percpu(size) percpu_alloc_mask((size), GFP_KERNEL, \
|
|
|
+#define __alloc_percpu(size, align) percpu_alloc_mask((size), GFP_KERNEL, \
|
|
|
cpu_possible_map)
|
|
|
-#define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type))
|
|
|
+#define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \
|
|
|
+ __alignof__(type))
|
|
|
#define free_percpu(ptr) percpu_free((ptr))
|
|
|
/*
|
|
|
* Use this to get to a cpu's version of the per-cpu object dynamically
|