Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi.c
Show First 20 Lines • Show All 1,167 Lines • ▼ Show 20 Lines | case LOCAL_CPUS: | ||||
*cpuset = cpuset_domain[d]; | *cpuset = cpuset_domain[d]; | ||||
return (0); | return (0); | ||||
case INTR_CPUS: | case INTR_CPUS: | ||||
error = bus_generic_get_cpus(dev, child, op, setsize, cpuset); | error = bus_generic_get_cpus(dev, child, op, setsize, cpuset); | ||||
if (error != 0) | if (error != 0) | ||||
return (error); | return (error); | ||||
if (setsize != sizeof(cpuset_t)) | if (setsize != sizeof(cpuset_t)) | ||||
return (EINVAL); | return (EINVAL); | ||||
CPU_AND(cpuset, &cpuset_domain[d]); | CPU_AND(cpuset, cpuset, &cpuset_domain[d]); | ||||
return (0); | return (0); | ||||
default: | default: | ||||
return (bus_generic_get_cpus(dev, child, op, setsize, cpuset)); | return (bus_generic_get_cpus(dev, child, op, setsize, cpuset)); | ||||
} | } | ||||
} | } | ||||
/* | /* | ||||
* Fetch the NUMA domain for the given device 'dev'. | * Fetch the NUMA domain for the given device 'dev'. | ||||
▲ Show 20 Lines • Show All 3,321 Lines • Show Last 20 Lines |