From: Yuval Mintz Date: Mon, 1 Jun 2015 12:08:18 +0000 (+0300) Subject: bnx2x: Move statistics implementation into semaphores X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~26^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6e36d8c1a76be7a7afa2669483857dadec1e99c;p=pandora-kernel.git bnx2x: Move statistics implementation into semaphores Commit dff173de84958 ("bnx2x: Fix statistics locking scheme") changed the bnx2x locking around statistics state into using a mutex - but the lock is being accessed via a timer which is forbidden. [If compiled with CONFIG_DEBUG_MUTEXES, logs show a warning about accessing the mutex in interrupt context] This moves the implementation into using a semaphore [with size '1'] instead. Signed-off-by: Yuval Mintz Signed-off-by: Ariel Elior Signed-off-by: David S. Miller --- Reading git-diff-tree failed