net: introduce netdev_alloc_pcpu_stats() for drivers
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 13 Feb 2014 19:46:28 +0000 (11:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Feb 2014 20:49:55 +0000 (15:49 -0500)
There are many drivers calling alloc_percpu() to allocate pcpu stats
and then initializing ->syncp. So just introduce a helper function for them.

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found