Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
d8f6ad85
Commit
d8f6ad85
authored
9 years ago
by
Vineet Gupta
Browse files
Options
Downloads
Patches
Plain Diff
ARC: perf: don't add code for impossible case
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
30fdd373
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arc/kernel/perf_event.c
+1
-4
1 addition, 4 deletions
arch/arc/kernel/perf_event.c
with
1 addition
and
4 deletions
arch/arc/kernel/perf_event.c
+
1
−
4
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment