rps: keep the old behavior on SMP without rps
authorChangli Gao <xiaosuo@gmail.com>
Tue, 30 Mar 2010 20:16:22 +0000 (20:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2010 01:41:40 +0000 (18:41 -0700)
keep the old behavior on SMP without rps

RPS introduces a lock operation to per cpu variable input_pkt_queue on
SMP whenever rps is enabled or not. On SMP without RPS, this lock isn't
needed at all.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
net/core/dev.c | 42 ++++++++++++++++++++++++++++--------------
1 file changed, 28 insertions(+), 14 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

diff --cc net/core/dev.c
Simple merge