]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - lib/percpu_counter.c
revert "percpu counter: clean up percpu_counter_sum_and_set()"
[linux-2.6-omap-h63xx.git] / lib / percpu_counter.c
index 4a8ba4bf5f6f2b1c0de7d16f794d6d39cbb00d31..dba1530a5b2912e1fa9afb2c8c32e385b0826fc1 100644 (file)
@@ -106,13 +106,13 @@ void percpu_counter_destroy(struct percpu_counter *fbc)
        if (!fbc->counters)
                return;
 
-       free_percpu(fbc->counters);
-       fbc->counters = NULL;
 #ifdef CONFIG_HOTPLUG_CPU
        mutex_lock(&percpu_counters_lock);
        list_del(&fbc->list);
        mutex_unlock(&percpu_counters_lock);
 #endif
+       free_percpu(fbc->counters);
+       fbc->counters = NULL;
 }
 EXPORT_SYMBOL(percpu_counter_destroy);