aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2023-02-13 17:38:41 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2023-03-07 15:58:28 +0000
commit3ca605d19b2e8a305452d1450d031945881c4578 (patch)
tree607efeb1bf4c75c7b2cfb70d4c48861521a87994
parent5d93b49489e8bf38c1444dbb76598cb3c590266f (diff)
downloadsrc-3ca605d19b2e8a305452d1450d031945881c4578.tar.gz
src-3ca605d19b2e8a305452d1450d031945881c4578.zip
powerpc: remove nexus_get_cpus()
It is identical in functionality to root_get_cpus(). Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38494 (cherry picked from commit 6606096986222bac46e6f97d6ca47fc14978d172)
-rw-r--r--sys/powerpc/powerpc/nexus.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/powerpc/powerpc/nexus.c b/sys/powerpc/powerpc/nexus.c
index b3fe5a3e1527..1c6bc275ebdd 100644
--- a/sys/powerpc/powerpc/nexus.c
+++ b/sys/powerpc/powerpc/nexus.c
@@ -77,8 +77,6 @@ static int nexus_unmap_resource(device_t bus, device_t child, int type,
struct resource *r, struct resource_map *map);
static bus_space_tag_t nexus_get_bus_tag(device_t, device_t);
-static int nexus_get_cpus(device_t, device_t, enum cpu_sets, size_t,
- cpuset_t *);
#ifdef SMP
static bus_bind_intr_t nexus_bind_intr;
#endif
@@ -103,7 +101,6 @@ static device_method_t nexus_methods[] = {
#endif
DEVMETHOD(bus_config_intr, nexus_config_intr),
DEVMETHOD(bus_get_bus_tag, nexus_get_bus_tag),
- DEVMETHOD(bus_get_cpus, nexus_get_cpus),
/* ofw_bus interface */
DEVMETHOD(ofw_bus_map_intr, nexus_ofw_map_intr),
@@ -190,24 +187,6 @@ nexus_get_bus_tag(device_t bus __unused, device_t child __unused)
#endif
}
-static int
-nexus_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize,
- cpuset_t *cpuset)
-{
-
- switch (op) {
-#ifdef SMP
- case INTR_CPUS:
- if (setsize != sizeof(cpuset_t))
- return (EINVAL);
- *cpuset = all_cpus;
- return (0);
-#endif
- default:
- return (bus_generic_get_cpus(dev, child, op, setsize, cpuset));
- }
-}
-
#ifdef SMP
static int
nexus_bind_intr(device_t bus __unused, device_t child __unused,