]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: fix interrupt mask/unmask skip condition
authorStefan Chulski <stefanc@marvell.com>
Thu, 11 Feb 2021 15:13:19 +0000 (17:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 02:05:05 +0000 (18:05 -0800)
commit5863f744c3cb6919431862c7b46d4fb2d8e6d24f
treee1f36a4e900b4ba4818db0aefa6dd3006eda1314
parente5a69fefabc25dec8aea68a5769d0792e5f3105b
net: mvpp2: fix interrupt mask/unmask skip condition

The condition should be skipped if CPU ID equal to nthreads.
The patch doesn't fix any actual issue since
nthreads = min_t(unsigned int, num_present_cpus(), MVPP2_MAX_THREADS).
On all current Armada platforms, the number of CPU's is
less than MVPP2_MAX_THREADS.

Fixes: b9ccba6e89b1 ("net: mvpp2: handle cases where more CPUs are available than s/w threads")
Reported-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c