Fix boot up on ARMADA38X uniprocessor variant
Marvell Armada 380 is a uni-processor variant of the 38x SoC family. A function platform_mp_setmaxid() was setting a hardcoded value, which caused boot fail on A380. Fix this by relying on the CPU count obtained from device tree nodes. Submitted by: Marcin Wojtas <mw@semihalf.com Obtained from: Semihalf Sponsored by: Netgate Reviewed by: loos Differential revision: https://reviews.freebsd.org/D10783
This commit is contained in:
parent
c7a65ae3fe
commit
22a752b482
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318526
@ -127,7 +127,7 @@ platform_mp_setmaxid(void)
|
||||
|
||||
/* Armada38x family supports maximum 2 cores */
|
||||
mp_ncpus = platform_cnt_cpus();
|
||||
mp_maxid = 1;
|
||||
mp_maxid = mp_ncpus - 1;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user