hwtracing: hisi_ptt: Don't try to attach a task
authorYicong Yang <yangyicong@hisilicon.com>
Tue, 10 Oct 2023 08:47:30 +0000 (16:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jan 2024 10:51:39 +0000 (11:51 +0100)
commitbade0c1e7569f8efc9cfa1b29112f41e89e13835
tree5ce2504b3e01b01a5f6aaab3b20bbdd1fbc7ea39
parent5e67b92b8b2b9b5bdd126bdfed49f7bdad09329a
hwtracing: hisi_ptt: Don't try to attach a task

[ Upstream commit aff787f64ad7cbb54614b51b82c682fe06411ef3 ]

PTT is an uncore PMU and shouldn't be attached to any task. Block
the usage in pmu::event_init().

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20231010084731.30450-5-yangyicong@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwtracing/ptt/hisi_ptt.c