]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: vexpress: DCSCB: tighten CPU validity assertion
authorNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 15 Mar 2015 00:29:44 +0000 (20:29 -0400)
committerOlof Johansson <olof@lixom.net>
Fri, 3 Apr 2015 19:52:47 +0000 (12:52 -0700)
commit03fd5db717918b36a4ac1dbfc197222041608eab
treea8c41082f97f5b447b5de7d8afa3b5c9c6abcf1c
parent41f26e2d94374f7a31d3dc0b03223df7006a83cd
ARM: vexpress: DCSCB: tighten CPU validity assertion

Currently the cpu argument validity check uses a hardcoded limit of 4.
The DCSCB configuration data provides the actual number of CPUs and
we already use it elsewhere.  Let's improve the cpu argument validity
check by using that information instead.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-vexpress/dcscb.c