Skip to content

Commit

Permalink
ARC: perf: Rename DT binding to not confuse with power mgmt
Browse files Browse the repository at this point in the history
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
Vineet Gupta committed Apr 20, 2015
1 parent 22f6b89 commit 30fdd37
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 27 deletions.
20 changes: 20 additions & 0 deletions Documentation/devicetree/bindings/arc/pct.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
* ARC Performance Counters

The ARC700 can be configured with a pipeline performance monitor for counting
CPU and cache events like cache misses and hits. Like conventional PCT there
are 100+ hardware conditions dynamically mapped to upto 32 counters

Note that:
* The ARC 700 PCT does not support interrupts; although HW events may be
counted, the HW events themselves cannot serve as a trigger for a sample.

Required properties:

- compatible : should contain
"snps,arc700-pct"

Example:

pmu {
compatible = "snps,arc700-pct";
};
24 changes: 0 additions & 24 deletions Documentation/devicetree/bindings/arc/pmu.txt

This file was deleted.

2 changes: 1 addition & 1 deletion arch/arc/boot/dts/angel4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
};

arcpmu0: pmu {
compatible = "snps,arc700-pmu";
compatible = "snps,arc700-pct";
};
};
};
4 changes: 2 additions & 2 deletions arch/arc/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ static int arc_pmu_device_probe(struct platform_device *pdev)

#ifdef CONFIG_OF
static const struct of_device_id arc_pmu_match[] = {
{ .compatible = "snps,arc700-pmu" },
{ .compatible = "snps,arc700-pct" },
{},
};
MODULE_DEVICE_TABLE(of, arc_pmu_match);
#endif

static struct platform_driver arc_pmu_driver = {
.driver = {
.name = "arc700-pmu",
.name = "arc700-pct",
.of_match_table = of_match_ptr(arc_pmu_match),
},
.probe = arc_pmu_device_probe,
Expand Down

0 comments on commit 30fdd37

Please sign in to comment.