aboutsummaryrefslogtreecommitdiffstats
path: root/mm/percpu.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-02-02 00:38:15 -0500
committerTejun Heo <tj@kernel.org>2010-02-02 00:38:15 -0500
commitab386128f20c44c458a90039ab1bdc265ac474c9 (patch)
tree2ad188744922b1bb951fd10ff50dc04c83acce22 /mm/percpu.c
parentdbfc196a3cc1a2514ad0737a82f764de23bd65e6 (diff)
parentab658321f32770b903a4426e2a6fae0392757755 (diff)
Merge branch 'master' into percpu
Diffstat (limited to 'mm/percpu.c')
-rw-r--r--mm/percpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c
index 626e43c99498..b336638d20e7 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -1269,7 +1269,7 @@ static void pcpu_reclaim(struct work_struct *work)
1269 */ 1269 */
1270void free_percpu(void *ptr) 1270void free_percpu(void *ptr)
1271{ 1271{
1272 void *addr = __pcpu_ptr_to_addr(ptr); 1272 void *addr;
1273 struct pcpu_chunk *chunk; 1273 struct pcpu_chunk *chunk;
1274 unsigned long flags; 1274 unsigned long flags;
1275 int off; 1275 int off;
@@ -1277,6 +1277,8 @@ void free_percpu(void *ptr)
1277 if (!ptr) 1277 if (!ptr)
1278 return; 1278 return;
1279 1279
1280 addr = __pcpu_ptr_to_addr(ptr);
1281
1280 spin_lock_irqsave(&pcpu_lock, flags); 1282 spin_lock_irqsave(&pcpu_lock, flags);
1281 1283
1282 chunk = pcpu_chunk_addr_search(addr); 1284 chunk = pcpu_chunk_addr_search(addr);