Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
8689b517
Commit
8689b517
authored
Apr 24, 2007
by
Andi Kleen
Committed by
Andi Kleen
Apr 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] i386: Fix some warnings added by earlier patch
Signed-off-by:
Andi Kleen
<
ak@suse.de
>
parent
90767bd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/i386/kernel/nmi.c
arch/i386/kernel/nmi.c
+4
-4
No files found.
arch/i386/kernel/nmi.c
View file @
8689b517
...
...
@@ -126,7 +126,7 @@ int avail_to_resrv_perfctr_nmi_bit(unsigned int counter)
int
cpu
;
BUG_ON
(
counter
>
NMI_MAX_COUNTER_BITS
);
for_each_possible_cpu
(
cpu
)
{
if
(
test_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
)))
if
(
test_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
)
[
0
]
))
return
0
;
}
return
1
;
...
...
@@ -142,7 +142,7 @@ int avail_to_resrv_perfctr_nmi(unsigned int msr)
BUG_ON
(
counter
>
NMI_MAX_COUNTER_BITS
);
for_each_possible_cpu
(
cpu
)
{
if
(
test_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
)))
if
(
test_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
)
[
0
]
))
return
0
;
}
return
1
;
...
...
@@ -157,7 +157,7 @@ static int __reserve_perfctr_nmi(int cpu, unsigned int msr)
counter
=
nmi_perfctr_msr_to_bit
(
msr
);
BUG_ON
(
counter
>
NMI_MAX_COUNTER_BITS
);
if
(
!
test_and_set_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
)))
if
(
!
test_and_set_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
)
[
0
]
))
return
1
;
return
0
;
}
...
...
@@ -171,7 +171,7 @@ static void __release_perfctr_nmi(int cpu, unsigned int msr)
counter
=
nmi_perfctr_msr_to_bit
(
msr
);
BUG_ON
(
counter
>
NMI_MAX_COUNTER_BITS
);
clear_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
));
clear_bit
(
counter
,
&
per_cpu
(
perfctr_nmi_owner
,
cpu
)
[
0
]
);
}
int
reserve_perfctr_nmi
(
unsigned
int
msr
)
...
...
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