We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b21a5 commit 3939280Copy full SHA for 3939280
drivers/perf/arm-cmn.c
@@ -2313,6 +2313,7 @@ static int arm_cmn_probe(struct platform_device *pdev)
2313
2314
cmn->dev = &pdev->dev;
2315
cmn->part = (unsigned long)device_get_match_data(cmn->dev);
2316
+ cmn->cpu = cpumask_local_spread(0, dev_to_node(cmn->dev));
2317
platform_set_drvdata(pdev, cmn);
2318
2319
if (cmn->part == PART_CMN600 && has_acpi_companion(cmn->dev)) {
@@ -2340,7 +2341,6 @@ static int arm_cmn_probe(struct platform_device *pdev)
2340
2341
if (err)
2342
return err;
2343
- cmn->cpu = cpumask_local_spread(0, dev_to_node(cmn->dev));
2344
cmn->pmu = (struct pmu) {
2345
.module = THIS_MODULE,
2346
.attr_groups = arm_cmn_attr_groups,
0 commit comments