From nobody Tue Nov 26 22:00:33 2024 X-Original-To: dev-commits-src-main@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 4Xyc2T4ykvz5f52B; Tue, 26 Nov 2024 22:00:33 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xyc2T4Vqnz4G7J; Tue, 26 Nov 2024 22:00:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732658433; 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=2J4qtJU+10vz4eberojBIVZ/rp8dVRV+dmI5/ZeIXS8=; b=BdGl4znuuq3WapxVbSvQ8tn17QrziSSfL4AYQ/wIZzLERj8lx2tLouQwdfO/ckXXsvKySy HN5CnGs8CjHhHX6+EvpQsU/UhJzAYu5NfBOA4GR8MAOC35tkKnNb3j0jQP0R+nK8uahas8 /8b3hu4NaJ2lM2zDtD4/+fQ/xvkCYQGy1hSUIlePnOca0Q0iMazoAztq2SMzmcvyX1jQpJ MI/9oMaSVlNkkHnPTojzXc8tSo8Aoyx8KFZv/95l8d4tRYaljnMjeE+WSe+QeOks2q2aRR uTGJ2NX9vkVAXDIEnpkN20T2nYrYxBYxdnLC/FR8n8nfHqMx5qqyZ/4fjStZmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732658433; 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=2J4qtJU+10vz4eberojBIVZ/rp8dVRV+dmI5/ZeIXS8=; b=wd5Ze0tASgCGs7OdQ0chdzsmvjCXCNVZZ4wtyWoDO+r2ake9z0cVjzfBcYY6U1HbRnZOYE 2+Gvn9br4bMAWJlDVOjJ0EE2f3s9ePGjpdNMUEX00pv35hADyhzI5xxKNKjEbFErX+C6eN ObBCwlgvyJ7hSBMhkLA+SCVvGZdEICnfJfH5VebbzOiLNDC79g1/rDqwI6fHRFNm6sjrlv GooAVT2gsXsqMUQ2lytt6gZ+X7FvKE5w2mYCE7fUQWRrGgC2rlqylrqVRKehb6U3ZLgsgI vdX7/IOVVHaJ/1zDCTo8u4OZgiz7TcXGBm2503KozgZ1e1x26hBLf20FVWaLzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732658433; a=rsa-sha256; cv=none; b=mV1ZmFt8fsuNP0chfUE4GobEOEhxaG3W1XVt8dOe0wh+EZNMRcD2UjfI5AhXJzLIl2iBLR iEi+s6QGssVkusXVEeP84zLyIHZsUgCR9wYsqu6+sPDaJpM5iXspGDyC/yrYDUYrAH0crJ rHEfkeaxmY/jDwShiw+A4h0ACf3oQorLc6MeJRtbOhuJEmo6wwykkocZLZYBDcSQXW7BYV 7aEfWnAMili7rju/PT+nAFGDcnihIGpSY0BVjIVTI1WmL/zKA1xqeACWCNC0IKe5incIx9 79aw1Ew2q2Wqc5er5Nl3THykSalqCyNSFffDNR8cKDIsIfiEUIGBl0hunUN69Q== 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 4Xyc2T45zKzhn4; Tue, 26 Nov 2024 22:00:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AQM0X0m095234; Tue, 26 Nov 2024 22:00:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AQM0XqN095231; Tue, 26 Nov 2024 22:00:33 GMT (envelope-from git) Date: Tue, 26 Nov 2024 22:00:33 GMT Message-Id: <202411262200.4AQM0XqN095231@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 6f423295f18a - main - acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f423295f18a3f53a31453d61dbbd5271d7bd099 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6f423295f18a3f53a31453d61dbbd5271d7bd099 commit 6f423295f18a3f53a31453d61dbbd5271d7bd099 Author: Konstantin Belousov AuthorDate: 2024-10-30 15:54:16 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-26 21:56:19 +0000 acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static Reviewed by: jhb Sponsored by: Advanced Micro Devices (AMD) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D47291 --- sys/dev/acpica/acpi.c | 8 ++++---- sys/dev/acpica/acpivar.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index ea95f57fc22e..d4fbec7552f1 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1246,8 +1246,8 @@ acpi_hint_device_unit(device_t acdev, device_t child, const char *name, * _PXM to a NUMA domain. If the device does not have a _PXM method, * -2 is returned. If any other error occurs, -1 is returned. */ -static int -acpi_parse_pxm(device_t dev) +int +acpi_pxm_parse(device_t dev) { #ifdef NUMA #if defined(__i386__) || defined(__amd64__) || defined(__aarch64__) @@ -1274,7 +1274,7 @@ acpi_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize, { int d, error; - d = acpi_parse_pxm(child); + d = acpi_pxm_parse(child); if (d < 0) return (bus_generic_get_cpus(dev, child, op, setsize, cpuset)); @@ -1310,7 +1310,7 @@ acpi_get_domain(device_t dev, device_t child, int *domain) { int d; - d = acpi_parse_pxm(child); + d = acpi_pxm_parse(child); if (d >= 0) { *domain = d; return (0); diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index ea32c58b1371..d3def7c7e17b 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -585,6 +585,7 @@ void acpi_pxm_parse_tables(void); void acpi_pxm_set_mem_locality(void); void acpi_pxm_set_cpu_locality(void); int acpi_pxm_get_cpu_locality(int apic_id); +int acpi_pxm_parse(device_t dev); /* * Map a PXM to a VM domain.