From nobody Thu Feb 16 21:30:25 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PHp5F57mdz3rZY3; Thu, 16 Feb 2023 21:30:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PHp5F4j1vz43qf; Thu, 16 Feb 2023 21:30:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676583025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tl+uKTXHcn4AKaj2lnB6ve4a1SLoKsdp9bZWxG6RTzY=; b=FbbybFcQLL6zStExTF7cHcwcy4oZ8R/mTsFo045k0OTYYA3OlTZ6pt0qA38SilILnUmBdE PQjvS74lQb/SRJEEDBt3IB3zsCGXgbC0xJdZZSwwl28+dOLLZHY6WHG4G3X6f+y4TwtEu6 VD1+kKC27uvmBdZGkRiX9L+dsmjRw45v7rUp0aX4+tt59nTIq4XEsexGbhsDkOlfc11Avs kXtgXQ4H3D+Nv7qEzDoYvDGsJnvWOU42OQER44VTDxMPmTPXsHs6mV7D7m6jc6ZREavBJj 2Pl/z8vOys+MIYJknsL6FtArJ6OZeFgZnIZ/JhGP5thUZzYpgLv0CYagyGXnpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676583025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tl+uKTXHcn4AKaj2lnB6ve4a1SLoKsdp9bZWxG6RTzY=; b=sCDJFztVEDH4yjT2UR3XODP+rYB/VvRiJa/GRSkUpQDRm0FmL8/iCcdOjT3u0txqIKwywp U/YI//foONvMRrrCHcFUlX14xmw3uWdMxOkBiKDm7VJNccSAbfoeusRFqGan9menms6OCP s1KzPYPyQLrfBO16v0eHgJY+3AleZbv9GFNeB4JA0TbHb4xFd6ZChQtA/VuK3r5nVlBN1D 33tFk9jiPtur/qLAha/kQ80x8HJ4oVVbKcuAUTjSIlfWmS9MMQIE6B2He9JCITGRDU+uEP EeZ4U990LVpFfdOEnf1Jv4LzF7q+J//Staf7sh8XoJNrtBoooxJxHigm9iTFMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676583025; a=rsa-sha256; cv=none; b=Awe9hgz29hFLu7hMEOJqmbpxfmsXH3keQO5G2z25ashHbagPRxfoUUua8Zl+8uzNWHLJr8 OKpYG2J58vhLdQE/dB+LgH+OehzmMghSVYCJe2od3l2er7uCPIpKYcbBVhwMSQ94puYqqf FOka0TtF+GnMfWqbANIC2UjjR/yRcxmafoOBxS07bmgMNLwyMyraxfRmoJm1t8dy/QrA1e MUVuTEagYuHtnJ7GKmxjDjYQIuY7cNYCgoryTlgnifj81fCus3RJqRRJxA/q1YRlNNO8Fd sqvVrTPtDgH2WXuPADzLEF/c6maI7mNHx5RX8lSl+Zjb+yTlUyKKaYhq8bBRtg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PHp5F3mvmzJvn; Thu, 16 Feb 2023 21:30:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31GLUPUG083215; Thu, 16 Feb 2023 21:30:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GLUPls083214; Thu, 16 Feb 2023 21:30:25 GMT (envelope-from git) Date: Thu, 16 Feb 2023 21:30:25 GMT Message-Id: <202302162130.31GLUPls083214@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 660609698622 - main - powerpc: remove nexus_get_cpus() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6606096986222bac46e6f97d6ca47fc14978d172 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=6606096986222bac46e6f97d6ca47fc14978d172 commit 6606096986222bac46e6f97d6ca47fc14978d172 Author: Mitchell Horne AuthorDate: 2023-02-13 17:38:41 +0000 Commit: Mitchell Horne CommitDate: 2023-02-16 21:29:22 +0000 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 --- sys/powerpc/powerpc/nexus.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/sys/powerpc/powerpc/nexus.c b/sys/powerpc/powerpc/nexus.c index c0d4f8396cfa..3a1e961c743e 100644 --- a/sys/powerpc/powerpc/nexus.c +++ b/sys/powerpc/powerpc/nexus.c @@ -83,8 +83,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 @@ -112,7 +110,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), @@ -209,24 +206,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,