Loading drivers/devfreq/arm-memlat-mon.c +18 −19 Original line number Diff line number Diff line Loading @@ -649,9 +649,7 @@ static int memlat_mon_probe(struct platform_device *pdev, bool is_compute) if (is_compute) { mon->miss_ev_id = 0; ret = register_compute(dev, hw); goto unlock_out; } } else { mon->miss_ev = devm_kzalloc(dev, num_cpus * sizeof(*mon->miss_ev), GFP_KERNEL); Loading @@ -663,7 +661,7 @@ static int memlat_mon_probe(struct platform_device *pdev, bool is_compute) ret = of_property_read_u32(dev->of_node, "qcom,cachemiss-ev", &event_id); if (ret) { dev_err(dev, "Cache miss event missing for this mon: %d\n", dev_err(dev, "Cache miss event missing for mon: %d\n", ret); ret = -EINVAL; goto unlock_out; Loading @@ -671,6 +669,7 @@ static int memlat_mon_probe(struct platform_device *pdev, bool is_compute) mon->miss_ev_id = event_id; ret = register_memlat(dev, hw); } if (!ret) cpu_grp->num_inited_mons++; Loading Loading
drivers/devfreq/arm-memlat-mon.c +18 −19 Original line number Diff line number Diff line Loading @@ -649,9 +649,7 @@ static int memlat_mon_probe(struct platform_device *pdev, bool is_compute) if (is_compute) { mon->miss_ev_id = 0; ret = register_compute(dev, hw); goto unlock_out; } } else { mon->miss_ev = devm_kzalloc(dev, num_cpus * sizeof(*mon->miss_ev), GFP_KERNEL); Loading @@ -663,7 +661,7 @@ static int memlat_mon_probe(struct platform_device *pdev, bool is_compute) ret = of_property_read_u32(dev->of_node, "qcom,cachemiss-ev", &event_id); if (ret) { dev_err(dev, "Cache miss event missing for this mon: %d\n", dev_err(dev, "Cache miss event missing for mon: %d\n", ret); ret = -EINVAL; goto unlock_out; Loading @@ -671,6 +669,7 @@ static int memlat_mon_probe(struct platform_device *pdev, bool is_compute) mon->miss_ev_id = event_id; ret = register_memlat(dev, hw); } if (!ret) cpu_grp->num_inited_mons++; Loading