Skip to content
Commit 33835e8d authored by Tanmay Jagdale's avatar Tanmay Jagdale Committed by Will Deacon
Browse files

perf/marvell_cn10k: Fix tad_pmu_event_init() to check pmu type first



Make sure to check the pmu type first and then check event->attr.disabled.
Doing so would avoid reading the disabled attribute of an event that is
not handled by TAD PMU.

Signed-off-by: default avatarTanmay Jagdale <tanmay@marvell.com>
Link: https://lore.kernel.org/r/20220510102657.487539-1-tanmay@marvell.com
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 6b79738b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment