]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcce9fe46df75265f85b6d6d942382ebe91a15da7
tree75208ee01f8d28c2c43ec85e15b3b8bddcf0e137
parent6e5c443073e9d25cd21555e309abad3c5c2b2e0b
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