OSDN Git Service

net: mvpp2: remove excessive spinlocks from driver initialization
authorMarcin Wojtas <mw@semihalf.com>
Thu, 6 Aug 2015 17:00:28 +0000 (19:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 17:57:00 +0000 (10:57 -0700)
commitd53793c5d6eb0cfe4175d9c315a30d65adf3478b
tree75208ee01f8d28c2c43ec85e15b3b8bddcf0e137
parentfe1e1876d8f6d8d4b45e3940e6dd43cd3b18d958
net: mvpp2: remove excessive spinlocks from driver initialization

Using spinlocks protection during one-time driver initialization is not
necessary. Moreover it resulted in invalid GFP_KERNEL allocation under the lock.

This commit removes redundant spinlocks from buffer manager part of mvpp2
initialization.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reported-by: Alexandre Fournier <alexandre.fournier@wisp-e.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c