Page MenuHomeFreeBSD

Remove platform_mp_init_secondary as it's unneeded.
ClosedPublic

Authored by andrew on Feb 26 2016, 11:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 10:34 AM
Unknown Object (File)
Thu, Dec 12, 3:42 PM
Unknown Object (File)
Dec 7 2024, 1:52 PM
Unknown Object (File)
Dec 4 2024, 6:04 PM
Unknown Object (File)
Oct 28 2024, 6:05 AM
Unknown Object (File)
Oct 5 2024, 5:30 AM
Unknown Object (File)
Oct 2 2024, 3:33 PM
Unknown Object (File)
Oct 1 2024, 5:17 PM
Subscribers

Details

Summary

Almost all copies of platform_mp_init_secondary just called
intr_pic_init_secondary. Replace them with a direct call. On bcm2836
and Armada XP we need to add this function, but it can be empty.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

andrew retitled this revision from to Remove platform_mp_init_secondary as it's unneeded..
andrew updated this object.
andrew edited the test plan for this revision. (Show Details)
andrew added a reviewer: ARM.

Only define intr_pic_init_secondary on bcm283x when building for SMP

skra added inline comments.
sys/arm/arm/mp_machdep.c
237 ↗(On Diff #13770)

I'm okay with it if the change means that all possible secondary inits should go to init_secondary() directly. As some of them may even be called on different places in the function.

sys/arm/arm/mp_machdep.c
237 ↗(On Diff #13770)

If a given SoC has a custom requirement we should use the PLATFORM code to handle it.

I'm currently working on updating it to support SMP and found, across all SoCs that currently use it, we only need two of the platform_mp_* functions, one to count the CPUs, and one to start them. The other cases can be handled with a default function, suggesting we should just remove it.

This revision is now accepted and ready to land.Feb 26 2016, 3:46 PM
imp accepted this revision.
imp added a reviewer: imp.
This revision was automatically updated to reflect the committed changes.