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
4418906f
Commit
4418906f
authored
Feb 06, 2004
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc32: Fix PowerMac SMP to work with G5s
parent
7189c465
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
arch/ppc/platforms/pmac_setup.c
arch/ppc/platforms/pmac_setup.c
+1
-1
arch/ppc/platforms/pmac_smp.c
arch/ppc/platforms/pmac_smp.c
+12
-2
No files found.
arch/ppc/platforms/pmac_setup.c
View file @
4418906f
...
@@ -332,7 +332,7 @@ pmac_setup_arch(void)
...
@@ -332,7 +332,7 @@ pmac_setup_arch(void)
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
/* Check for Core99 */
/* Check for Core99 */
if
(
find_devices
(
"uni-n"
))
if
(
find_devices
(
"uni-n"
)
||
find_devices
(
"u3"
)
)
ppc_md
.
smp_ops
=
&
core99_smp_ops
;
ppc_md
.
smp_ops
=
&
core99_smp_ops
;
else
else
ppc_md
.
smp_ops
=
&
psurge_smp_ops
;
ppc_md
.
smp_ops
=
&
psurge_smp_ops
;
...
...
arch/ppc/platforms/pmac_smp.c
View file @
4418906f
...
@@ -556,9 +556,19 @@ static void __init smp_core99_setup_cpu(int cpu_nr)
...
@@ -556,9 +556,19 @@ static void __init smp_core99_setup_cpu(int cpu_nr)
/* Setup openpic */
/* Setup openpic */
do_openpic_setup_cpu
();
do_openpic_setup_cpu
();
/* Setup L2/L3 */
if
(
cpu_nr
==
0
)
{
if
(
cpu_nr
==
0
)
#ifdef CONFIG_POWER4
extern
void
g5_phy_disable_cpu1
(
void
);
/* If we didn't start the second CPU, we must take
* it off the bus
*/
if
(
machine_is_compatible
(
"MacRISC4"
)
&&
num_online_cpus
()
<
2
)
g5_phy_disable_cpu1
();
#endif
/* CONFIG_POWER4 */
if
(
ppc_md
.
progress
)
ppc_md
.
progress
(
"core99_setup_cpu 0 done"
,
0x349
);
if
(
ppc_md
.
progress
)
ppc_md
.
progress
(
"core99_setup_cpu 0 done"
,
0x349
);
}
}
}
void
__init
smp_core99_take_timebase
(
void
)
void
__init
smp_core99_take_timebase
(
void
)
...
...
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