linux/drivers/perf
Thomas Gleixner 77b06ddc04 perf/hisi: Use irq_set_affinity()
These drivers use irq_set_affinity_hint() to set the affinity for the PMU
interrupts, which relies on the undocumented side effect that this function
actually sets the affinity under the hood.

Setting an hint is clearly not a guarantee and for these PMU interrupts an
affinity hint, which is supposed to guide userspace for setting affinity,
is beyond pointless, because the affinity of these interrupts cannot be
modified from user space.

Aside of that the error checks are bogus because the only error which is
returned from irq_set_affinity_hint() is when there is no irq descriptor
for the interrupt number, but not when the affinity set fails. That's on
purpose because the hint can point to an offline CPU.

Replace the mindless abuse with irq_set_affinity().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Shaokun Zhang <zhangshaokun@hisilicon.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20210518093118.813375875@linutronix.de
Signed-off-by: Will Deacon <will@kernel.org>
2021-05-24 11:02:00 +01:00
..
hisilicon perf/hisi: Use irq_set_affinity() 2021-05-24 11:02:00 +01:00
arm_dmc620_pmu.c perf/arm-dmc620: Use irq_set_affinity() 2021-05-24 11:01:59 +01:00
arm_dsu_pmu.c perf/arm-dsu: Use irq_set_affinity() 2021-05-24 11:02:00 +01:00
arm_pmu_acpi.c drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer 2020-03-02 12:07:35 +00:00
arm_pmu_platform.c perf/arm_pmu_platform: Clean up with dev_printk 2021-03-30 11:41:50 +01:00
arm_pmu.c arm64: Get rid of oprofile leftovers 2021-04-22 13:32:39 +01:00
arm_smmuv3_pmu.c perf/arm-smmuv3: Use irq_set_affinity() 2021-05-24 11:02:00 +01:00
arm_spe_pmu.c drivers/perf: convert sysfs snprintf family to sysfs_emit 2021-03-25 12:55:44 +00:00
arm-cci.c drivers/perf: convert sysfs snprintf family to sysfs_emit 2021-03-25 12:55:44 +00:00
arm-ccn.c perf/arm-ccn: Use irq_set_affinity() 2021-05-24 11:01:59 +01:00
arm-cmn.c perf/arm-cmn: Use irq_set_affinity() 2021-05-24 11:01:59 +01:00
fsl_imx8_ddr_perf.c perf/imx_ddr: Use irq_set_affinity() 2021-05-24 11:02:00 +01:00
Kconfig driver/perf: Remove ARM_SMMU_V3_PMU dependency on ARM_SMMU_V3 2021-02-01 12:39:40 +00:00
Makefile driver/perf: Add PMU driver for the ARM DMC-620 memory controller 2020-11-25 14:51:21 +00:00
qcom_l2_pmu.c drivers/perf: convert sysfs sprintf family to sysfs_emit 2021-03-25 12:55:44 +00:00
qcom_l3_pmu.c drivers/perf: convert sysfs sprintf family to sysfs_emit 2021-03-25 12:55:44 +00:00
thunderx2_pmu.c drivers/perf: convert sysfs sprintf family to sysfs_emit 2021-03-25 12:55:44 +00:00
xgene_pmu.c drivers/perf: convert sysfs sprintf family to sysfs_emit 2021-03-25 12:55:44 +00:00