Changli Gao cece1945bf net: disable preemption before call smp_processor_id()
Although netif_rx() isn't expected to be called in process context with
preemption enabled, it'd better handle this case. And this is why get_cpu()
is used in the non-RPS #ifdef branch. If tree RCU is selected,
rcu_read_lock() won't disable preemption, so preempt_disable() should be
called explictly.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-07 20:35:43 -07:00
..
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2010-07-14 18:02:16 -07:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2010-07-19 15:12:51 -07:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00