From nobody Fri Dec 10 01:09:25 2021 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 B93EB18D70CD; Fri, 10 Dec 2021 01:09: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 4J9CVF3RrYz4gsy; Fri, 10 Dec 2021 01:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 564BB117BB; Fri, 10 Dec 2021 01:09: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 1BA19PlQ041125; Fri, 10 Dec 2021 01:09:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BA19PjH041124; Fri, 10 Dec 2021 01:09:25 GMT (envelope-from git) Date: Fri, 10 Dec 2021 01:09:25 GMT Message-Id: <202112100109.1BA19PjH041124@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Motin Subject: git: de291c5d104a - main - acpi_cpu: Replace Giant with bus_topo_lock. 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: mav X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: de291c5d104a82dc66415a8d01bbceb4d4f93f38 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639098565; 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=HFgwIqty1Ogn3DKGQCubiTfhsAqi7gKt+FHqp7tequI=; b=Z0qbPljJwARM/rJueSCgdKtHpRa4SN/UgvYCdzwbc/gK+Q2dwbCyepxcU1wnmXJmemM8T/ Z2AqX6Z40nx0dYr9THcmgTfc4EyZqiqSapy7k/xu3OC3M+16QeXws7v2EW9Ps98kgv4Q/g WdaC9iRtyC+EqieRq43ERJUyMxozqrvN4htE8f4r3QAcFOXlTz8XvjfiFmEdFjFCtP8PFd guaWUZZolIlWBpnOQjrUEm/wFqPxlmJITucKV0a/Z4sqqfOM4aisXl9sqbCnfZtpvMNxRm JjDOq/LbRqpZJKklE4UmLhASvBHK1ckBW/EkCDqyZe+V5gN5OrS3+eQrFGL9cA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639098565; a=rsa-sha256; cv=none; b=oVpd5slSOPXhc91iLXnzeFlPsV8IgXVm6OscYzelchXzEK/0Sro1BjdAjjyoTH1HDv95Qq rc2pc2nlIDFoqTTC8BBh8KapKcoU+3IMLAg+RZaWZx4BHcRD1u13kNbb7fMOdJg0yNwn0D JEs0aEE9BfPeUepcWv35sLz7eQ2ck0XS6a5eynM48aRToahnK9y/sehJ3EqhhrbiOH7IDj N448Pf5Kkbmrsy+VsrH3sYUX46VbQcC9R3mvatBB3nLRbzaJC+iZalhefXc3usx2Wjoc0H /G5/apcxMxkXiyo1lqH8Skes61BxK6REE+pIG3IkdHdTFdkUx3mYYZCvkXD1YQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=de291c5d104a82dc66415a8d01bbceb4d4f93f38 commit de291c5d104a82dc66415a8d01bbceb4d4f93f38 Author: Alexander Motin AuthorDate: 2021-12-10 01:08:25 +0000 Commit: Alexander Motin CommitDate: 2021-12-10 01:08:25 +0000 acpi_cpu: Replace Giant with bus_topo_lock. --- sys/dev/acpica/acpi_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index aac25af830ea..b1520368756f 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -447,7 +447,7 @@ acpi_cpu_postattach(void *unused __unused) if (cpu_softc == NULL) return; - mtx_lock(&Giant); + bus_topo_lock(); CPU_FOREACH(i) { if ((sc = cpu_softc[i]) != NULL) bus_generic_probe(sc->cpu_dev); @@ -458,7 +458,7 @@ acpi_cpu_postattach(void *unused __unused) attached = 1; } } - mtx_unlock(&Giant); + bus_topo_unlock(); if (attached) { #ifdef EARLY_AP_STARTUP