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
82584817
Commit
82584817
authored
May 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ppc64: Make PMC6 spin
From: Anton Blanchard <anton@samba.org> Make PMC6 spin on POWER5 boxes.
parent
56078e53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
arch/ppc64/kernel/sysfs.c
arch/ppc64/kernel/sysfs.c
+11
-0
No files found.
arch/ppc64/kernel/sysfs.c
View file @
82584817
...
...
@@ -114,6 +114,7 @@ void ppc64_enable_pmcs(void)
unsigned
long
hid0
;
unsigned
long
set
,
reset
;
int
ret
;
unsigned
int
ctrl
;
/* Only need to enable them once */
if
(
__get_cpu_var
(
pmcs_enabled
))
...
...
@@ -158,6 +159,16 @@ void ppc64_enable_pmcs(void)
char
*
ptr
=
(
char
*
)
&
paca
[
smp_processor_id
()].
xLpPaca
;
ptr
[
0xBB
]
=
1
;
}
/*
* On SMT machines we have to set the run latch in the ctrl register
* in order to make PMC6 spin.
*/
if
(
cur_cpu_spec
->
cpu_features
&
CPU_FTR_SMT
)
{
ctrl
=
mfspr
(
CTRLF
);
ctrl
|=
RUNLATCH
;
mtspr
(
CTRLT
,
ctrl
);
}
}
#endif
...
...
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