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

No differences found