Skip to content
Commit d5d8a0f9 authored by Sasha Levin's avatar Sasha Levin Committed by Greg Kroah-Hartman
Browse files

net: mvpp2: fix interrupt mask/unmask skip condition

[ Upstream commit 7867299c ]

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: e531f767

 ("net: mvpp2: handle cases where more CPUs are available than s/w threads")
Reported-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarStefan Chulski <stefanc@marvell.com>
Reviewed-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 137f475b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment