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
Kirill Smelkov
linux
Commits
7334c675
Commit
7334c675
authored
Nov 22, 2011
by
Russell King
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-rmk' of
git://git.kernel.org/pub/scm/linux/kernel/git/will/linux
into fixes
parents
53cbcbcf
e5a21327
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
arch/arm/include/asm/pmu.h
arch/arm/include/asm/pmu.h
+0
-10
arch/arm/kernel/perf_event.c
arch/arm/kernel/perf_event.c
+10
-1
arch/arm/kernel/pmu.c
arch/arm/kernel/pmu.c
+1
-0
No files found.
arch/arm/include/asm/pmu.h
View file @
7334c675
...
@@ -55,16 +55,6 @@ reserve_pmu(enum arm_pmu_type type);
...
@@ -55,16 +55,6 @@ reserve_pmu(enum arm_pmu_type type);
extern
void
extern
void
release_pmu
(
enum
arm_pmu_type
type
);
release_pmu
(
enum
arm_pmu_type
type
);
/**
* init_pmu() - Initialise the PMU.
*
* Initialise the system ready for PMU enabling. This should typically set the
* IRQ affinity and nothing else. The users (oprofile/perf events etc) will do
* the actual hardware initialisation.
*/
extern
int
init_pmu
(
enum
arm_pmu_type
type
);
#else
/* CONFIG_CPU_HAS_PMU */
#else
/* CONFIG_CPU_HAS_PMU */
#include <linux/err.h>
#include <linux/err.h>
...
...
arch/arm/kernel/perf_event.c
View file @
7334c675
...
@@ -343,8 +343,14 @@ validate_group(struct perf_event *event)
...
@@ -343,8 +343,14 @@ validate_group(struct perf_event *event)
{
{
struct
perf_event
*
sibling
,
*
leader
=
event
->
group_leader
;
struct
perf_event
*
sibling
,
*
leader
=
event
->
group_leader
;
struct
pmu_hw_events
fake_pmu
;
struct
pmu_hw_events
fake_pmu
;
DECLARE_BITMAP
(
fake_used_mask
,
ARMPMU_MAX_HWEVENTS
);
memset
(
&
fake_pmu
,
0
,
sizeof
(
fake_pmu
));
/*
* Initialise the fake PMU. We only need to populate the
* used_mask for the purposes of validation.
*/
memset
(
fake_used_mask
,
0
,
sizeof
(
fake_used_mask
));
fake_pmu
.
used_mask
=
fake_used_mask
;
if
(
!
validate_event
(
&
fake_pmu
,
leader
))
if
(
!
validate_event
(
&
fake_pmu
,
leader
))
return
-
ENOSPC
;
return
-
ENOSPC
;
...
@@ -396,6 +402,9 @@ armpmu_reserve_hardware(struct arm_pmu *armpmu)
...
@@ -396,6 +402,9 @@ armpmu_reserve_hardware(struct arm_pmu *armpmu)
int
i
,
err
,
irq
,
irqs
;
int
i
,
err
,
irq
,
irqs
;
struct
platform_device
*
pmu_device
=
armpmu
->
plat_device
;
struct
platform_device
*
pmu_device
=
armpmu
->
plat_device
;
if
(
!
pmu_device
)
return
-
ENODEV
;
err
=
reserve_pmu
(
armpmu
->
type
);
err
=
reserve_pmu
(
armpmu
->
type
);
if
(
err
)
{
if
(
err
)
{
pr_warning
(
"unable to reserve pmu
\n
"
);
pr_warning
(
"unable to reserve pmu
\n
"
);
...
...
arch/arm/kernel/pmu.c
View file @
7334c675
...
@@ -33,3 +33,4 @@ release_pmu(enum arm_pmu_type type)
...
@@ -33,3 +33,4 @@ release_pmu(enum arm_pmu_type type)
{
{
clear_bit_unlock
(
type
,
pmu_lock
);
clear_bit_unlock
(
type
,
pmu_lock
);
}
}
EXPORT_SYMBOL_GPL
(
release_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