From: Likhitha Korrapati <likhitha@linux.ibm.com>
To: maddy@linux.ibm.com, linuxppc-dev@lists.ozlabs.org
Cc: mpe@ellerman.id.au, npiggin@gmail.com,
christophe.leroy@csgroup.eu, naveen@kernel.org,
Likhitha Korrapati <likhitha@linux.ibm.com>,
Anjali K <anjalik@linux.ibm.com>
Subject: [PATCH 5/7] arch/powerpc/perf : Removing unused macros from power6-pmu.c
Date: Sat, 26 Apr 2025 09:25:33 +0530 [thread overview]
Message-ID: <20250426035535.450778-6-likhitha@linux.ibm.com> (raw)
In-Reply-To: <20250426035535.450778-1-likhitha@linux.ibm.com>
The macro MMCR1_PMCSEL_MSK was introduced in power6-pmu via
commit f78628374a13 ("powerpc/perf_counter: Add support
for POWER6") but never used.
The usage of macro PM_SUBUNIT_MSKS was removed in commit ab7ef2e50a55
("perf_counter: powerpc: allow use of limited-function counters")
and failed to remove its definition.
Removing both the macros as they are not in use.
Co-developed-by: Anjali K <anjalik@linux.ibm.com>
Signed-off-by: Anjali K <anjalik@linux.ibm.com>
Signed-off-by: Likhitha Korrapati <likhitha@linux.ibm.com>
---
arch/powerpc/perf/power6-pmu.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/perf/power6-pmu.c b/arch/powerpc/perf/power6-pmu.c
index 9f720b522e17..ceb75235a6ef 100644
--- a/arch/powerpc/perf/power6-pmu.c
+++ b/arch/powerpc/perf/power6-pmu.c
@@ -27,7 +27,6 @@
#define PM_BYTE_MSK 3
#define PM_SUBUNIT_SH 8 /* Subunit event comes from (NEST_SEL enc.) */
#define PM_SUBUNIT_MSK 7
-#define PM_SUBUNIT_MSKS (PM_SUBUNIT_MSK << PM_SUBUNIT_SH)
#define PM_PMCSEL_MSK 0xff /* PMCxSEL value */
#define PM_BUSEVENT_MSK 0xf3700
@@ -46,7 +45,6 @@
#define MMCR1_PMC1_ADDR_SEL (1ul << 35)
#define MMCR1_PMC1SEL_SH 24
#define MMCR1_PMCSEL_SH(n) (MMCR1_PMC1SEL_SH - (n) * 8)
-#define MMCR1_PMCSEL_MSK 0xff
/*
* Map of which direct events on which PMCs are marked instruction events.
--
2.43.5
next prev parent reply other threads:[~2025-04-26 3:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-26 3:55 [PATCH 0/7] Removing unused macros in arch/powerpc/perf Likhitha Korrapati
2025-04-26 3:55 ` [PATCH 1/7] arch/powerpc/perf : Removing unused macros from power5+-pmu.c Likhitha Korrapati
2025-04-26 3:55 ` [PATCH 2/7] arch/powerpc/perf : Removing unused macros from power5-pmu.c Likhitha Korrapati
2025-04-26 3:55 ` [PATCH 3/7] arch/powerpc/perf : Removing unused macros from ppc970-pmu.c Likhitha Korrapati
2025-04-26 3:55 ` [PATCH 4/7] arch/powerpc/perf : Removing unused macros from power7-pmu.c Likhitha Korrapati
2025-04-26 3:55 ` Likhitha Korrapati [this message]
2025-04-26 3:55 ` [PATCH 6/7] arch/powerpc/perf : Removing unused macros from power8-pmu.c Likhitha Korrapati
2025-04-26 3:55 ` [PATCH 7/7] arch/powerpc/perf : Removing unused macros from power9-pmu.c Likhitha Korrapati
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250426035535.450778-6-likhitha@linux.ibm.com \
--to=likhitha@linux.ibm.com \
--cc=anjalik@linux.ibm.com \
--cc=christophe.leroy@csgroup.eu \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=naveen@kernel.org \
--cc=npiggin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.