Loading drivers/hwtracing/coresight/coresight-etm4x.c +5 −1 Original line number Diff line number Diff line Loading @@ -977,7 +977,11 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id) spin_lock_init(&drvdata->spinlock); drvdata->cpu = pdata ? pdata->cpu : 0; drvdata->cpu = pdata ? pdata->cpu : -ENODEV; if (drvdata->cpu == -ENODEV) { dev_info(dev, "CPU not available\n"); return -ENODEV; } cpus_read_lock(); ret = smp_call_function_single(drvdata->cpu, Loading drivers/hwtracing/coresight/of_coresight.c +6 −4 Original line number Diff line number Diff line Loading @@ -103,14 +103,16 @@ int of_coresight_get_cpu(const struct device_node *node) struct device_node *dn; dn = of_parse_phandle(node, "cpu", 0); /* Affinity defaults to CPU0 */ /* Affinity defaults to invalid */ if (!dn) return 0; return -ENODEV; cpu = of_cpu_node_to_id(dn); of_node_put(dn); /* Affinity to CPU0 if no cpu nodes are found */ return (cpu < 0) ? 0 : cpu; /* Affinity to invalid if no cpu nodes are found */ return (cpu < 0) ? -ENODEV : cpu; } EXPORT_SYMBOL_GPL(of_coresight_get_cpu); Loading Loading
drivers/hwtracing/coresight/coresight-etm4x.c +5 −1 Original line number Diff line number Diff line Loading @@ -977,7 +977,11 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id) spin_lock_init(&drvdata->spinlock); drvdata->cpu = pdata ? pdata->cpu : 0; drvdata->cpu = pdata ? pdata->cpu : -ENODEV; if (drvdata->cpu == -ENODEV) { dev_info(dev, "CPU not available\n"); return -ENODEV; } cpus_read_lock(); ret = smp_call_function_single(drvdata->cpu, Loading
drivers/hwtracing/coresight/of_coresight.c +6 −4 Original line number Diff line number Diff line Loading @@ -103,14 +103,16 @@ int of_coresight_get_cpu(const struct device_node *node) struct device_node *dn; dn = of_parse_phandle(node, "cpu", 0); /* Affinity defaults to CPU0 */ /* Affinity defaults to invalid */ if (!dn) return 0; return -ENODEV; cpu = of_cpu_node_to_id(dn); of_node_put(dn); /* Affinity to CPU0 if no cpu nodes are found */ return (cpu < 0) ? 0 : cpu; /* Affinity to invalid if no cpu nodes are found */ return (cpu < 0) ? -ENODEV : cpu; } EXPORT_SYMBOL_GPL(of_coresight_get_cpu); Loading