Home
last modified time | relevance | path

Searched hist:"58 f539740b1ccfc5ef4e509ec2efe82621b546e3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/
H A Dloopback.cdiff 58f539740b1ccfc5ef4e509ec2efe82621b546e3 Fri Oct 20 02:32:41 CDT 2006 Eric Dumazet <dada1@cosmosbay.com> [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>