mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
perf/amlogic: Fix config1/config2 parsing issue
[ Upstream commitc61e5720f2
] The 3th argument of for_each_set_bit is incorrect, fix them. Fixes:2016e2113d
("perf/amlogic: Add support for Amlogic meson G12 SoC DDR PMU driver") Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com> Link: https://lore.kernel.org/r/20230209115403.521868-1-jiucheng.xu@amlogic.com Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
52a416f8d5
commit
83cad43bd7
1 changed files with 6 additions and 2 deletions
|
@ -156,10 +156,14 @@ static int meson_ddr_perf_event_add(struct perf_event *event, int flags)
|
|||
u64 config2 = event->attr.config2;
|
||||
int i;
|
||||
|
||||
for_each_set_bit(i, (const unsigned long *)&config1, sizeof(config1))
|
||||
for_each_set_bit(i,
|
||||
(const unsigned long *)&config1,
|
||||
BITS_PER_TYPE(config1))
|
||||
meson_ddr_set_axi_filter(event, i);
|
||||
|
||||
for_each_set_bit(i, (const unsigned long *)&config2, sizeof(config2))
|
||||
for_each_set_bit(i,
|
||||
(const unsigned long *)&config2,
|
||||
BITS_PER_TYPE(config2))
|
||||
meson_ddr_set_axi_filter(event, i + 64);
|
||||
|
||||
if (flags & PERF_EF_START)
|
||||
|
|
Loading…
Reference in a new issue