File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1373,11 +1373,15 @@ static int pmu_sbi_device_probe(struct platform_device *pdev)
1373
1373
1374
1374
/* SBI PMU Snapsphot is only available in SBI v2.0 */
1375
1375
if (sbi_v2_available ) {
1376
+ int cpu ;
1377
+
1376
1378
ret = pmu_sbi_snapshot_alloc (pmu );
1377
1379
if (ret )
1378
1380
goto out_unregister ;
1379
1381
1380
- ret = pmu_sbi_snapshot_setup (pmu , smp_processor_id ());
1382
+ cpu = get_cpu ();
1383
+
1384
+ ret = pmu_sbi_snapshot_setup (pmu , cpu );
1381
1385
if (ret ) {
1382
1386
/* Snapshot is an optional feature. Continue if not available */
1383
1387
pmu_sbi_snapshot_free (pmu );
@@ -1391,6 +1395,7 @@ static int pmu_sbi_device_probe(struct platform_device *pdev)
1391
1395
*/
1392
1396
static_branch_enable (& sbi_pmu_snapshot_available );
1393
1397
}
1398
+ put_cpu ();
1394
1399
}
1395
1400
1396
1401
register_sysctl ("kernel" , sbi_pmu_sysctl_table );
You can’t perform that action at this time.
0 commit comments