* [GIT PULL] percpu changes for v4.11-rc1
@ 2017-02-27 20:03 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2017-02-27 20:03 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Hello, Linus.
Contains just one minor cleanup patch which gets rid of an unnecessary
irqsave/restore in the cpu dead callback.
Thanks.
The following changes since commit 44b4b461a0fb407507b46ea76a71376d74de7058:
Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc (2017-01-19 16:40:03 -0800)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu.git for-4.11
for you to fetch changes up to aaf0f2fa682861e47a4f6a8762d2b8a9a4a51077:
percpu_counter: percpu_counter_hotcpu_callback() cleanup (2017-01-20 10:06:56 -0500)
----------------------------------------------------------------
Eric Dumazet (1):
percpu_counter: percpu_counter_hotcpu_callback() cleanup
lib/percpu_counter.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c
index c8cebb1..9c21000 100644
--- a/lib/percpu_counter.c
+++ b/lib/percpu_counter.c
@@ -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
--
tejun
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-27 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 20:03 [GIT PULL] percpu changes for v4.11-rc1 Tejun Heo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.