Remove platform_mp_probe as it's almost identical on most ARM SoCs, and
slightly wrong on the others. We should just check if mp_ncpus is set to more than one CPU as we may wish to run on a single core even when SMP is available. Reviewed by: ian Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D5458
This commit is contained in:
parent
c7c518e5f0
commit
b249af7af9
@ -81,16 +81,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = ncpu - 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 0)
|
||||
platform_mp_setmaxid();
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -111,16 +111,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = ncpu - 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 0)
|
||||
platform_mp_setmaxid();
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -433,18 +433,6 @@ moveon:
|
||||
mp_maxid = ncpu - 1;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 0)
|
||||
platform_mp_setmaxid();
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -133,12 +133,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = mp_ncpus - 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
return (1);
|
||||
}
|
||||
|
||||
static int
|
||||
alpine_get_cpu_resume_base(u_long *pbase, u_long *psize)
|
||||
{
|
||||
|
@ -86,9 +86,12 @@ void *dpcpu[MAXCPU - 1];
|
||||
int
|
||||
cpu_mp_probe(void)
|
||||
{
|
||||
|
||||
KASSERT(mp_ncpus != 0, ("cpu_mp_probe: mp_ncpus is unset"));
|
||||
|
||||
CPU_SETOF(0, &all_cpus);
|
||||
|
||||
return (platform_mp_probe());
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
/* Start Application Processor via platform specific function */
|
||||
|
@ -95,17 +95,6 @@ platform_mp_setmaxid(void)
|
||||
DPRINTF("mp_maxid=%d\n", mp_maxid);
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
DPRINTF("platform_mp_probe\n");
|
||||
CPU_SETOF(0, &all_cpus);
|
||||
if (mp_ncpus == 0)
|
||||
platform_mp_setmaxid();
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -99,17 +99,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = ncpu - 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
/* I think platform_mp_setmaxid must get called first, but be safe. */
|
||||
if (mp_ncpus == 0)
|
||||
platform_mp_setmaxid();
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -45,7 +45,6 @@ int pic_ipi_read(int arg);
|
||||
|
||||
/* Platform interface */
|
||||
void platform_mp_setmaxid(void);
|
||||
int platform_mp_probe(void);
|
||||
void platform_mp_start_ap(void);
|
||||
void platform_mp_init_secondary(void);
|
||||
|
||||
|
@ -130,13 +130,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_init_secondary(void)
|
||||
{
|
||||
|
@ -87,13 +87,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = mp_ncpus - 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_init_secondary(void)
|
||||
{
|
||||
|
@ -46,13 +46,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
static int running_cpus;
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
static boolean_t
|
||||
virt_maxid(u_int id, phandle_t node, u_int addr_cells, pcell_t *reg)
|
||||
{
|
||||
|
@ -107,16 +107,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = ncpu - 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
if (mp_ncpus == 0)
|
||||
platform_mp_setmaxid();
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -89,13 +89,6 @@ platform_mp_setmaxid(void)
|
||||
mp_maxid = mp_ncpus - 1;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
return (mp_ncpus > 1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -56,13 +56,6 @@ platform_mp_setmaxid(void)
|
||||
mp_ncpus = 2;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
return (1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
@ -61,13 +61,6 @@ platform_mp_setmaxid(void)
|
||||
mp_ncpus = 2;
|
||||
}
|
||||
|
||||
int
|
||||
platform_mp_probe(void)
|
||||
{
|
||||
|
||||
return (1);
|
||||
}
|
||||
|
||||
void
|
||||
platform_mp_start_ap(void)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user