[NET]: Can use __get_cpu_var() instead of per_cpu() in loopback driver.
commit58f539740b1ccfc5ef4e509ec2efe82621b546e3
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 20 Oct 2006 07:32:41 +0000 (20 00:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2006 07:32:41 +0000 (20 00:32 -0700)
treef0e24b555808ce919528a0c5950e188768e97f23
parent78d79423179c0efc7ec34b55d287e7be4ca07da6
[NET]: Can use __get_cpu_var() instead of per_cpu() in loopback driver.

As BHs are off in loopback_xmit(), preemption cannot occurs, so we can
use __get_cpu_var() instead of per_cpu() (and avoid a
preempt_enable()/preempt_disable() pair)

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c