aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-06-23 20:52:37 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-29 02:24:29 -0400
commit7a9b2d59507d85569b8a456688ef40cf2ac73e48 (patch)
tree436533da6f680a0b4b6860e0219a2e594ac16735 /net/core
parentb6b3ecc71a0664d44ed8d087d583aee98fbf492a (diff)
net: use this_cpu_ptr()
use this_cpu_ptr(p) instead of per_cpu_ptr(p, smp_processor_id()) Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/flow.c b/net/core/flow.c
index 161900674009..8c7c91a32f18 100644
--- a/net/core/flow.c
+++ b/net/core/flow.c
@@ -222,7 +222,7 @@ flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir,
222 unsigned int hash; 222 unsigned int hash;
223 223
224 local_bh_disable(); 224 local_bh_disable();
225 fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); 225 fcp = this_cpu_ptr(fc->percpu);
226 226
227 fle = NULL; 227 fle = NULL;
228 flo = NULL; 228 flo = NULL;
@@ -302,7 +302,7 @@ static void flow_cache_flush_tasklet(unsigned long data)
302 LIST_HEAD(gc_list); 302 LIST_HEAD(gc_list);
303 int i, deleted = 0; 303 int i, deleted = 0;
304 304
305 fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); 305 fcp = this_cpu_ptr(fc->percpu);
306 for (i = 0; i < flow_cache_hash_size(fc); i++) { 306 for (i = 0; i < flow_cache_hash_size(fc); i++) {
307 hlist_for_each_entry_safe(fle, entry, tmp, 307 hlist_for_each_entry_safe(fle, entry, tmp,
308 &fcp->hash_table[i], u.hlist) { 308 &fcp->hash_table[i], u.hlist) {