diff options
author | Christoph Lameter <cl@linux-foundation.org> | 2009-10-03 19:48:22 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-10-03 19:48:22 +0900 |
commit | ca0c9584b1f16bd5911893647cb7f1be82e60554 (patch) | |
tree | 7dd9453ec36f56b50ce519ce964af9f35b80f381 /drivers/net/loopback.c | |
parent | 4ea7334b6de818b0123fa4be32af4cb8ac65174c (diff) | |
download | linux-3.10-ca0c9584b1f16bd5911893647cb7f1be82e60554.tar.gz linux-3.10-ca0c9584b1f16bd5911893647cb7f1be82e60554.tar.bz2 linux-3.10-ca0c9584b1f16bd5911893647cb7f1be82e60554.zip |
this_cpu: Straight transformations
Use this_cpu_ptr and __this_cpu_ptr in locations where straight
transformations are possible because per_cpu_ptr is used with
either smp_processor_id() or raw_smp_processor_id().
cc: David Howells <dhowells@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
cc: Ingo Molnar <mingo@elte.hu>
cc: Rusty Russell <rusty@rustcorp.com.au>
cc: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/net/loopback.c')
-rw-r--r-- | drivers/net/loopback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 1bc654a73c4..8ebeb76a373 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -81,7 +81,7 @@ static netdev_tx_t loopback_xmit(struct sk_buff *skb, /* it's OK to use per_cpu_ptr() because BHs are off */ pcpu_lstats = dev->ml_priv; - lb_stats = per_cpu_ptr(pcpu_lstats, smp_processor_id()); + lb_stats = this_cpu_ptr(pcpu_lstats); len = skb->len; if (likely(netif_rx(skb) == NET_RX_SUCCESS)) { |