rps: optimize rps_get_cpu()
authorChangli Gao <xiaosuo@gmail.com>
Sun, 25 Apr 2010 05:50:10 +0000 (22:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Apr 2010 05:50:10 +0000 (22:50 -0700)
commit8c52d509e84bbf26cffb8b6e75b399689af67885
treed26461f82d204e044f68a8f85b4b4ea71682b09d
parentbf73130d7f98c8c4db143e2dc4982f4eefd5d5e5
rps: optimize rps_get_cpu()

optimize rps_get_cpu().

don't initialize ports when we can get the ports. one memory access
for ports than two.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c