aboutsummaryrefslogtreecommitdiffstats
path: root/lib/percpu_counter.c
diff options
context:
space:
mode:
authorJeremy Erickson <jerickso@cs.unc.edu>2014-04-18 17:06:00 -0400
committerJeremy Erickson <jerickso@cs.unc.edu>2014-04-18 17:06:00 -0400
commita215aa7b9ab3759c047201199fba64d3042d7f13 (patch)
treebca37493d9b2233450e6d3ffced1261d0e4f71fe /lib/percpu_counter.c
parentd31199a77ef606f1d06894385f1852181ba6136b (diff)
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
Diffstat (limited to 'lib/percpu_counter.c')
-rw-r--r--lib/percpu_counter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c
index ec9048e74f44..209448e1d2b9 100644
--- a/lib/percpu_counter.c
+++ b/lib/percpu_counter.c
@@ -76,6 +76,7 @@ int __percpu_counter_init(struct percpu_counter *fbc, s64 amount,
76 if (!fbc->counters) 76 if (!fbc->counters)
77 return -ENOMEM; 77 return -ENOMEM;
78#ifdef CONFIG_HOTPLUG_CPU 78#ifdef CONFIG_HOTPLUG_CPU
79 INIT_LIST_HEAD(&fbc->list);
79 mutex_lock(&percpu_counters_lock); 80 mutex_lock(&percpu_counters_lock);
80 list_add(&fbc->list, &percpu_counters); 81 list_add(&fbc->list, &percpu_counters);
81 mutex_unlock(&percpu_counters_lock); 82 mutex_unlock(&percpu_counters_lock);