From nobody Fri Jun 09 19:58:15 2023 X-Original-To: dev-commits-src-branches@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 4QdBhm0DLDz4cKTJ; Fri, 9 Jun 2023 19:58:16 +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 4QdBhl6vzfz4K3f; Fri, 9 Jun 2023 19:58:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686340696; 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=qj8529q1CEZGD0FiqX1BZAaLWxwbJQa0cIBnECrnRn0=; b=wpNAejHPq2oEZXUdgBcO2dmsrWCCiBgTQEMtHL8J9BFSMYWbSZp7Q3CiTzY/CYarCC7fsE 1XxiOt4zZQJnO7z5NF7XyoJ/LlidHnjB+3NBW8WqMX3yFzZ+jrm5xBuXHIMo1kKJ24TF25 XKzeiV/EAP+KATtSuzZZVyIlFLcc+svXSwk4/nQEyOlgHrq7tKYaMiWQP6yaDKuDB7qgna LVvFxUpTZ19vuF/298m9zMFHXSdVRyDFsTF1YE4WZ9MLhb4l1O6vb0bos9wCWfK0oaH/yC dqYNXbce5qV70b2VRGARaDMXL+ndgq5/ozB2+htQJSwSo8gfbqDoP5xoz6QSCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686340696; 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=qj8529q1CEZGD0FiqX1BZAaLWxwbJQa0cIBnECrnRn0=; b=DbR8U2Y6RLwFOsLyVZABdjBPt6ZfWej0EHMvbcxwKNKWHKDo3BSaIugpJ5Lhyri2ngj/Ss jthlg5ZCWCi2s70gktlVh/PFVixUeuyW5i3NcClLCpAsnulidcXz9Yvto6c6nsbAU09HOH y9erWPX71xWdsw17lh05gtIdm5Ne1HNi8rzwj3SKlGegRrf5SjbFOyd4TG6jR07HxzZdeg GH2qJh2tz8bC3hLiPvtoi7ebKAmHhyRL/sU0SgL7K2a95aZNObSDY8kfPQB1qQQW9eS8cc wJFTxJY4TA2459fy7DdSKROTwWo7qyRMwNYM4EzM5QMaz2fxX6gPi7XMYe/C8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686340696; a=rsa-sha256; cv=none; b=ymD5ymuGz0luU+VSRcH5564qtlY7vQ/KqHesAfNHKboN4tYt2CMnF3R9ZZWrGaGTiV0hS9 hsH0ONJxTWB4R1X+qNdWBmLIHFOkF4kf1WNgGMWNf+U5dIQYqzwmEV/B+fV5BxdFhv7CCD YdtvWyl7RZMtdjRrLNk0Ge/2CfaeMhZRL6xkNzBIK52UEsG40WUKMUrodhS4Rnaa1zi0ok /yBaTEh3ovP21J3rD+YgtEy6qa0QczAfG5NjGKwEd08Z8ORGOhtXgUA+riaPYwzb98Vr66 n2/aDIfSsGydM3TUux/Ho/7EDhivj8+6ZaQA7QBXKei6VALKR8ffCWqZ4hvLDw== 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 4QdBhl60XGznbH; Fri, 9 Jun 2023 19:58:15 +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 359JwFt9072302; Fri, 9 Jun 2023 19:58:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 359JwFCP072301; Fri, 9 Jun 2023 19:58:15 GMT (envelope-from git) Date: Fri, 9 Jun 2023 19:58:15 GMT Message-Id: <202306091958.359JwFCP072301@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 927a2f62980b - stable/13 - hwpmc: remove pmd_pcpu_{init,fini} callbacks List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 927a2f62980b69f2bf95c9e3c0424458d06f3886 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=927a2f62980b69f2bf95c9e3c0424458d06f3886 commit 927a2f62980b69f2bf95c9e3c0424458d06f3886 Author: Mitchell Horne AuthorDate: 2023-05-05 21:59:33 +0000 Commit: Mitchell Horne CommitDate: 2023-06-09 19:48:06 +0000 hwpmc: remove pmd_pcpu_{init,fini} callbacks These are unused on all platforms. Reviewed by: jkoshy, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39912 (cherry picked from commit 772b2dc3abc5072743e7598d35e0a8ad621e7b0d) --- sys/dev/hwpmc/hwpmc_amd.c | 2 -- sys/dev/hwpmc/hwpmc_core.c | 3 --- sys/dev/hwpmc/hwpmc_mod.c | 6 ------ sys/sys/pmc.h | 4 ---- 4 files changed, 15 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c index 36411da871ea..26ea46d3fc9f 100644 --- a/sys/dev/hwpmc/hwpmc_amd.c +++ b/sys/dev/hwpmc/hwpmc_amd.c @@ -1146,8 +1146,6 @@ pmc_amd_initialize(void) pcd->pcd_stop_pmc = amd_stop_pmc; pcd->pcd_write_pmc = amd_write_pmc; - pmc_mdep->pmd_pcpu_init = NULL; - pmc_mdep->pmd_pcpu_fini = NULL; pmc_mdep->pmd_intr = amd_intr; pmc_mdep->pmd_switch_in = amd_switch_in; pmc_mdep->pmd_switch_out = amd_switch_out; diff --git a/sys/dev/hwpmc/hwpmc_core.c b/sys/dev/hwpmc/hwpmc_core.c index d80edeefb0d0..02165898aeed 100644 --- a/sys/dev/hwpmc/hwpmc_core.c +++ b/sys/dev/hwpmc/hwpmc_core.c @@ -1248,9 +1248,6 @@ pmc_core_initialize(struct pmc_mdep *md, int maxcpu, int version_override) else md->pmd_intr = core_intr; - md->pmd_pcpu_fini = NULL; - md->pmd_pcpu_init = NULL; - return (0); } diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index fb8679f65a38..1ff427a1e965 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -5492,8 +5492,6 @@ pmc_generic_cpu_initialize(void) md->pmd_cputype = PMC_CPU_GENERIC; - md->pmd_pcpu_init = NULL; - md->pmd_pcpu_fini = NULL; md->pmd_switch_in = generic_switch_in; md->pmd_switch_out = generic_switch_out; @@ -5626,8 +5624,6 @@ pmc_initialize(void) pmc_pcpu[cpu] = malloc(sizeof(struct pmc_cpu) + md->pmd_npmc * sizeof(struct pmc_hw *), M_PMC, M_WAITOK|M_ZERO); - if (md->pmd_pcpu_init) - error = md->pmd_pcpu_init(md, cpu); for (n = 0; error == 0 && n < md->pmd_nclass; n++) error = md->pmd_classdep[n].pcd_pcpu_init(md, cpu); } @@ -5865,8 +5861,6 @@ pmc_cleanup(void) pmc_select_cpu(cpu); for (c = 0; c < md->pmd_nclass; c++) md->pmd_classdep[c].pcd_pcpu_fini(md, cpu); - if (md->pmd_pcpu_fini) - md->pmd_pcpu_fini(md, cpu); } if (md->pmd_cputype == PMC_CPU_GENERIC) diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h index b771dac81e93..1983dbb91578 100644 --- a/sys/sys/pmc.h +++ b/sys/sys/pmc.h @@ -1046,10 +1046,6 @@ struct pmc_mdep { * Machine dependent methods. */ - /* per-cpu initialization and finalization */ - int (*pmd_pcpu_init)(struct pmc_mdep *_md, int _cpu); - int (*pmd_pcpu_fini)(struct pmc_mdep *_md, int _cpu); - /* thread context switch in/out */ int (*pmd_switch_in)(struct pmc_cpu *_p, struct pmc_process *_pp); int (*pmd_switch_out)(struct pmc_cpu *_p, struct pmc_process *_pp);