From: Eric Dumazet Date: Fri, 24 Mar 2006 11:18:10 +0000 (-0800) Subject: [PATCH] HOTPLUG_CPU: avoid hitting too many cachelines in recalc_bh_state() X-Git-Tag: v2.6.17-rc1~904 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a14342683b1e3adcf5f78660a42fcbd95b44a35;p=pandora-kernel.git [PATCH] HOTPLUG_CPU: avoid hitting too many cachelines in recalc_bh_state() Instead of using for_each_cpu(i), we can use for_each_online_cpu(i). When a CPU goes offline (ie removed from online map), it might have a non null bh_accounting.nr, so this patch adds a transfer of this counter to an online CPU counter. We already have a hotcpu_notifier, (function buffer_cpu_notify()), where we can do this bh_accounting. Signed-off-by: Eric Dumazet Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed