Skip to content

Commit 5353dd7

Browse files
Sebastian Andrzej Siewiorgregkh
authored andcommitted
coresight: Replace deprecated CPU-hotplug functions.
The functions get_online_cpus() and put_online_cpus() have been deprecated during the CPU hotplug rework. They map directly to cpus_read_lock() and cpus_read_unlock(). Replace deprecated CPU-hotplug functions with the official version. The behavior remains unchanged. Link: https://lore.kernel.org/r/[email protected] Cc: Mathieu Poirier <[email protected]> Cc: Suzuki K Poulose <[email protected]> Cc: Mike Leach <[email protected]> Cc: Leo Yan <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f71cd93 commit 5353dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hwtracing/coresight/coresight-cpu-debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ static int debug_probe(struct amba_device *adev, const struct amba_id *id)
588588

589589
drvdata->base = base;
590590

591-
get_online_cpus();
591+
cpus_read_lock();
592592
per_cpu(debug_drvdata, drvdata->cpu) = drvdata;
593593
ret = smp_call_function_single(drvdata->cpu, debug_init_arch_data,
594594
drvdata, 1);
595-
put_online_cpus();
595+
cpus_read_unlock();
596596

597597
if (ret) {
598598
dev_err(dev, "CPU%d debug arch init failed\n", drvdata->cpu);

0 commit comments

Comments
 (0)