Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
30fdd373
Commit
30fdd373
authored
Apr 15, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: perf: Rename DT binding to not confuse with power mgmt
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
22f6b899
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
27 deletions
+23
-27
Documentation/devicetree/bindings/arc/pct.txt
Documentation/devicetree/bindings/arc/pct.txt
+20
-0
Documentation/devicetree/bindings/arc/pmu.txt
Documentation/devicetree/bindings/arc/pmu.txt
+0
-24
arch/arc/boot/dts/angel4.dts
arch/arc/boot/dts/angel4.dts
+1
-1
arch/arc/kernel/perf_event.c
arch/arc/kernel/perf_event.c
+2
-2
No files found.
Documentation/devicetree/bindings/arc/pct.txt
0 → 100644
View file @
30fdd373
* 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";
};
Documentation/devicetree/bindings/arc/pmu.txt
deleted
100644 → 0
View file @
22f6b899
* ARC Performance Monitor Unit
The ARC 700 can be configured with a pipeline performance monitor for counting
CPU and cache events like cache misses and hits.
Note that:
* ARC 700 refers to a family of ARC processor cores;
- There is only one type of PMU available for the whole family;
- The PMU may support different sets of events; supported events are probed
at boot time, as required by the reference manual.
* The ARC 700 PMU 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-pmu"
Example:
pmu {
compatible = "snps,arc700-pmu";
};
arch/arc/boot/dts/angel4.dts
View file @
30fdd373
...
...
@@ -64,7 +64,7 @@ phy0: ethernet-phy@0 {
};
arcpmu0: pmu {
compatible = "snps,arc700-p
mu
";
compatible = "snps,arc700-p
ct
";
};
};
};
arch/arc/kernel/perf_event.c
View file @
30fdd373
...
...
@@ -346,7 +346,7 @@ 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-p
mu
"
},
{
.
compatible
=
"snps,arc700-p
ct
"
},
{},
};
MODULE_DEVICE_TABLE
(
of
,
arc_pmu_match
);
...
...
@@ -354,7 +354,7 @@ MODULE_DEVICE_TABLE(of, arc_pmu_match);
static
struct
platform_driver
arc_pmu_driver
=
{
.
driver
=
{
.
name
=
"arc700-p
mu
"
,
.
name
=
"arc700-p
ct
"
,
.
of_match_table
=
of_match_ptr
(
arc_pmu_match
),
},
.
probe
=
arc_pmu_device_probe
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment