From nobody Tue Apr 12 21:59:26 2022 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 37EA41AFBEDE; Tue, 12 Apr 2022 21:59:28 +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 4KdKPp54zMz4hsm; Tue, 12 Apr 2022 21:59:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800767; 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=DNICYfQLsonfODbPY5WBl3JUvQpqSDaiZHWkvG6yV+Q=; b=oPG2cUx+76rJokaZGQJWQmEzA5aF1+xJ73oZljMQqp9+/YS62Gy6c7ZzChyeoPKwytdFHC mCPS6lqo8jLOWwIjtKB/tFROAd168q+cVXwXnOQE2qN6p/8gmLFpmNwt9UnkeoDL2HSkwo 2OnRxxXuGR7eYhjYEq73GZg4pbZrhclHat4VnHbFAg0lZrc5zoKuhvjILPDHAwnZ0c+q04 GStqO/zA89VwoQ+zevqhN4gqRASFZY4J5D2Kgukn0OWJ7ssyNzt0arLL96Kre7GjL8rCK+ elMRBSvsI3loOXk9MfJfzn9heRat8OMtwhd18gSj14IS6TTAtrPNauUj/gTX0g== 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 86C3A1F45B; Tue, 12 Apr 2022 21:59:26 +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 23CLxQts035525; Tue, 12 Apr 2022 21:59:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLxQae035524; Tue, 12 Apr 2022 21:59:26 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:26 GMT Message-Id: <202204122159.23CLxQae035524@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 16471f47163c - main - ppc hwpmc: Remove unused variables. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 16471f47163ceb97d193d22858703eaeb86b4b9f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800767; 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=DNICYfQLsonfODbPY5WBl3JUvQpqSDaiZHWkvG6yV+Q=; b=BNQt28wPesZlD9n1pjt9c5wL2zbpPh7uba4pZJaBOMll3sE5ipPaKYWG9zYS+JsiPKdIPS KETaqer0SKH/zDr39tk9vO2jukPEW2fmL5ozLLvmTObAgKrhJaqfkcVhS+3mprRPipQOZE 4GQhTIlYlEdFKAa9j+vQHuCwlwqlOGgp3mrFsmPsWINNbQaQV+1boBgBzKsWjR+3pxhqRB x7LdWd2VlA2Drko02XMii2aE4UK4+hP+owDx1lFy0nNqZ9p0oii6ZnTuAqyNakZrQcnilu pTXOABkx9PhOLQpYL5QSYK6YibwOKSyd35K3zxmd87NYZpKhpzIfH/96RzlOOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800767; a=rsa-sha256; cv=none; b=cGAzqyVc7qBClL04eyWp/1ZggyQGHxsEQQgUBL7Xo68Zmzzd8C03IBuktWhTsVqckCc9Lw uXfxt0/yfKQqXnX7sNAWqKyxyt6F2l5GsnJbArWRDzU/3f3sg9rhu6hAmJAzjrb3++PQ0P C+CeXIVcKoVTspcS/Kpdr3k21tyU639sXeiayHZgQQozCGJi02JhY2c/qPNx3SJxs4y7G0 E4E17ySvaSRN5ksz0H23A4MxUWTvqEQ1rB4mcUy21QaU5+ZN5OvskmSH/+Ld5kBYIQCS6K RQ/tbFmbrwfqjujL0zzSAJZZzMWJt9MjumAP/4688UHJsHgVTED9CS77p4RIqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=16471f47163ceb97d193d22858703eaeb86b4b9f commit 16471f47163ceb97d193d22858703eaeb86b4b9f Author: John Baldwin AuthorDate: 2022-04-12 21:58:58 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:58 +0000 ppc hwpmc: Remove unused variables. --- sys/dev/hwpmc/hwpmc_mpc7xxx.c | 6 ------ sys/dev/hwpmc/hwpmc_ppc970.c | 5 ----- 2 files changed, 11 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_mpc7xxx.c b/sys/dev/hwpmc/hwpmc_mpc7xxx.c index c62c0791af01..799e997829ce 100644 --- a/sys/dev/hwpmc/hwpmc_mpc7xxx.c +++ b/sys/dev/hwpmc/hwpmc_mpc7xxx.c @@ -348,17 +348,11 @@ mpc7xxx_pmcn_write(unsigned int pmc, uint32_t val) static void mpc7xxx_set_pmc(int cpu, int ri, int config) { - struct pmc *pm; - struct pmc_hw *phw; register_t pmc_mmcr; - uint32_t config_mask; - phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; - pm = phw->phw_pmc; /* The mask is inverted (enable is 1) compared to the flags in * MMCR0, which are Freeze flags. */ - config_mask = ~config & POWERPC_PMC_ENABLE; config &= ~POWERPC_PMC_ENABLE; /* Enable/disable the PMC. */ diff --git a/sys/dev/hwpmc/hwpmc_ppc970.c b/sys/dev/hwpmc/hwpmc_ppc970.c index 3e92c4dc6aa2..b3786f3b6674 100644 --- a/sys/dev/hwpmc/hwpmc_ppc970.c +++ b/sys/dev/hwpmc/hwpmc_ppc970.c @@ -256,14 +256,9 @@ static size_t ppc970_event_codes_size = nitems(ppc970_event_codes); static void ppc970_set_pmc(int cpu, int ri, int config) { - struct pmc *pm; - struct pmc_hw *phw; register_t pmc_mmcr; int config_mask; - phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; - pm = phw->phw_pmc; - if (config == PMCN_NONE) config = PMC970N_NONE;