diff options
Diffstat (limited to 'mm/allocpercpu.c')
| -rw-r--r-- | mm/allocpercpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/allocpercpu.c b/mm/allocpercpu.c index 3653c570232b..dfdee6a47359 100644 --- a/mm/allocpercpu.c +++ b/mm/allocpercpu.c | |||
| @@ -31,7 +31,7 @@ static void percpu_depopulate(void *__pdata, int cpu) | |||
| 31 | * @__pdata: per-cpu data to depopulate | 31 | * @__pdata: per-cpu data to depopulate |
| 32 | * @mask: depopulate per-cpu data for cpu's selected through mask bits | 32 | * @mask: depopulate per-cpu data for cpu's selected through mask bits |
| 33 | */ | 33 | */ |
| 34 | static void __percpu_depopulate_mask(void *__pdata, cpumask_t *mask) | 34 | static void __percpu_depopulate_mask(void *__pdata, const cpumask_t *mask) |
| 35 | { | 35 | { |
| 36 | int cpu; | 36 | int cpu; |
| 37 | for_each_cpu_mask_nr(cpu, *mask) | 37 | for_each_cpu_mask_nr(cpu, *mask) |
| @@ -120,7 +120,7 @@ void *__alloc_percpu(size_t size, size_t align) | |||
| 120 | * on it. Larger alignment should only be used for module | 120 | * on it. Larger alignment should only be used for module |
| 121 | * percpu sections on SMP for which this path isn't used. | 121 | * percpu sections on SMP for which this path isn't used. |
| 122 | */ | 122 | */ |
| 123 | WARN_ON_ONCE(align > __alignof__(unsigned long long)); | 123 | WARN_ON_ONCE(align > SMP_CACHE_BYTES); |
| 124 | 124 | ||
| 125 | if (unlikely(!pdata)) | 125 | if (unlikely(!pdata)) |
| 126 | return NULL; | 126 | return NULL; |
| @@ -143,7 +143,7 @@ void free_percpu(void *__pdata) | |||
| 143 | { | 143 | { |
| 144 | if (unlikely(!__pdata)) | 144 | if (unlikely(!__pdata)) |
| 145 | return; | 145 | return; |
| 146 | __percpu_depopulate_mask(__pdata, &cpu_possible_map); | 146 | __percpu_depopulate_mask(__pdata, cpu_possible_mask); |
| 147 | kfree(__percpu_disguise(__pdata)); | 147 | kfree(__percpu_disguise(__pdata)); |
| 148 | } | 148 | } |
| 149 | EXPORT_SYMBOL_GPL(free_percpu); | 149 | EXPORT_SYMBOL_GPL(free_percpu); |
