File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ static int smmu_pmu_probe(struct platform_device *pdev)
814
814
if (err ) {
815
815
dev_err (dev , "Error %d registering hotplug, PMU @%pa\n" ,
816
816
err , & res_0 -> start );
817
- return err ;
817
+ goto out_clear_affinity ;
818
818
}
819
819
820
820
err = perf_pmu_register (& smmu_pmu -> pmu , name , -1 );
@@ -833,6 +833,8 @@ static int smmu_pmu_probe(struct platform_device *pdev)
833
833
834
834
out_unregister :
835
835
cpuhp_state_remove_instance_nocalls (cpuhp_state_num , & smmu_pmu -> node );
836
+ out_clear_affinity :
837
+ irq_set_affinity_hint (smmu_pmu -> irq , NULL );
836
838
return err ;
837
839
}
838
840
@@ -842,6 +844,7 @@ static int smmu_pmu_remove(struct platform_device *pdev)
842
844
843
845
perf_pmu_unregister (& smmu_pmu -> pmu );
844
846
cpuhp_state_remove_instance_nocalls (cpuhp_state_num , & smmu_pmu -> node );
847
+ irq_set_affinity_hint (smmu_pmu -> irq , NULL );
845
848
846
849
return 0 ;
847
850
}
You can’t perform that action at this time.
0 commit comments