]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - lib/percpu_counter.c
xprtrdma: Remove rpcrdma_buffer::rb_pool
[karo-tx-linux.git] / lib / percpu_counter.c
index c8cebb1370765fac92170cd0d2f8ed1ede0a01da..9c21000df0b5ea1b99a83fd73a338073cb7fd016 100644 (file)
@@ -176,13 +176,12 @@ static int percpu_counter_cpu_dead(unsigned int cpu)
        spin_lock_irq(&percpu_counters_lock);
        list_for_each_entry(fbc, &percpu_counters, list) {
                s32 *pcount;
-               unsigned long flags;
 
-               raw_spin_lock_irqsave(&fbc->lock, flags);
+               raw_spin_lock(&fbc->lock);
                pcount = per_cpu_ptr(fbc->counters, cpu);
                fbc->count += *pcount;
                *pcount = 0;
-               raw_spin_unlock_irqrestore(&fbc->lock, flags);
+               raw_spin_unlock(&fbc->lock);
        }
        spin_unlock_irq(&percpu_counters_lock);
 #endif