mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
This is a temporary fix to solve a regression issue on sparc64 that
is caused by the way sparc64 registers its CPUs. Nate will work on a real fix shortly. Approved by: njl
This commit is contained in:
parent
bf0e60bbbb
commit
db322c7eba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126887
@ -83,6 +83,7 @@ int smp_cpus = 1; /* how many cpu's running */
|
||||
SYSCTL_INT(_kern_smp, OID_AUTO, cpus, CTLFLAG_RD, &smp_cpus, 0,
|
||||
"Number of CPUs online");
|
||||
|
||||
#ifndef __sparc64__
|
||||
static void cpu_identify(driver_t *driver, device_t parent);
|
||||
static device_t cpu_add_child(device_t bus, int order, const char *name,
|
||||
int unit);
|
||||
@ -122,6 +123,7 @@ static driver_t cpu_driver = {
|
||||
};
|
||||
static devclass_t cpu_devclass;
|
||||
DRIVER_MODULE(cpu, nexus, cpu_driver, cpu_devclass, 0, 0);
|
||||
#endif
|
||||
|
||||
#ifdef SMP
|
||||
/* Enable forwarding of a signal to a process running on a different CPU */
|
||||
@ -415,6 +417,7 @@ smp_rendezvous(void (* setup_func)(void *),
|
||||
}
|
||||
#endif /* SMP */
|
||||
|
||||
#ifndef __sparc64__
|
||||
static void
|
||||
cpu_identify(driver_t *driver, device_t parent)
|
||||
{
|
||||
@ -440,3 +443,4 @@ cpu_add_child(device_t bus, int order, const char *name, int unit)
|
||||
{
|
||||
return (device_add_child_ordered(bus, order, name, unit));
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user