]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - lib/percpu_counter.c
x86, mtrr, pat: Fix one cpu getting out of sync during resume
[karo-tx-linux.git] / lib / percpu_counter.c
index aeaa6d7344475518a3b73b3a7062106e77cadcea..9d942128c152d035bfc62d9bda6632bb254be0ed 100644 (file)
@@ -76,6 +76,7 @@ int __percpu_counter_init(struct percpu_counter *fbc, s64 amount,
        if (!fbc->counters)
                return -ENOMEM;
 #ifdef CONFIG_HOTPLUG_CPU
+       INIT_LIST_HEAD(&fbc->list);
        mutex_lock(&percpu_counters_lock);
        list_add(&fbc->list, &percpu_counters);
        mutex_unlock(&percpu_counters_lock);