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
d8f6ad85
Commit
d8f6ad85
authored
Apr 20, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: perf: don't add code for impossible case
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
30fdd373
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
arch/arc/kernel/perf_event.c
arch/arc/kernel/perf_event.c
+1
-4
No files found.
arch/arc/kernel/perf_event.c
View file @
d8f6ad85
...
...
@@ -288,10 +288,7 @@ static int arc_pmu_device_probe(struct platform_device *pdev)
BUG_ON
(
pct_bcr
.
c
>
ARC_PMU_MAX_HWEVENTS
);
READ_BCR
(
ARC_REG_CC_BUILD
,
cc_bcr
);
if
(
!
cc_bcr
.
v
)
{
pr_err
(
"Performance counters exist, but no countable conditions?
\n
"
);
return
-
ENODEV
;
}
BUG_ON
(
!
cc_bcr
.
v
);
/* Counters exist but No countable conditions ? */
arc_pmu
=
devm_kzalloc
(
&
pdev
->
dev
,
sizeof
(
struct
arc_pmu
),
GFP_KERNEL
);
if
(
!
arc_pmu
)
...
...
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