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
7a3182b1
Commit
7a3182b1
authored
Aug 02, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: hotplug cpu changes
parent
1a84d369
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
190 additions
and
240 deletions
+190
-240
arch/ppc64/kernel/open_pic.c
arch/ppc64/kernel/open_pic.c
+1
-1
arch/ppc64/kernel/prom.c
arch/ppc64/kernel/prom.c
+1
-0
arch/ppc64/kernel/smp.c
arch/ppc64/kernel/smp.c
+171
-229
arch/ppc64/kernel/xics.c
arch/ppc64/kernel/xics.c
+1
-1
include/asm-ppc64/machdep.h
include/asm-ppc64/machdep.h
+16
-8
include/asm-ppc64/smp.h
include/asm-ppc64/smp.h
+0
-1
No files found.
arch/ppc64/kernel/open_pic.c
View file @
7a3182b1
...
...
@@ -576,7 +576,7 @@ void openpic_request_IPIs(void)
*/
static
spinlock_t
openpic_setup_lock
__initdata
=
SPIN_LOCK_UNLOCKED
;
void
__init
do_openpic_setup_cpu
(
void
)
void
__
dev
init
do_openpic_setup_cpu
(
void
)
{
#ifdef CONFIG_IRQ_ALL_CPUS
int
i
;
...
...
arch/ppc64/kernel/prom.c
View file @
7a3182b1
...
...
@@ -144,6 +144,7 @@ static interpret_func interpret_root_props;
#define FB_MAX 8
#endif
static
int
ppc64_is_smp
;
struct
prom_t
prom
=
{
0
,
/* entry */
...
...
arch/ppc64/kernel/smp.c
View file @
7a3182b1
This diff is collapsed.
Click to expand it.
arch/ppc64/kernel/xics.c
View file @
7a3182b1
...
...
@@ -373,7 +373,7 @@ xics_init_IRQ( void )
if
(
naca
->
platform
==
PLATFORM_PSERIES
)
{
#ifdef CONFIG_SMP
for
(
i
=
0
;
i
<
NR_CPUS
;
++
i
)
{
if
(
!
paca
[
i
].
active
)
if
(
!
cpu_possible
(
i
)
)
continue
;
xics_info
.
per_cpu
[
i
]
=
__ioremap
((
ulong
)
inodes
[
i
].
addr
,
...
...
include/asm-ppc64/machdep.h
View file @
7a3182b1
...
...
@@ -20,6 +20,17 @@ struct device_node;
struct
TceTable
;
struct
rtc_time
;
#ifdef CONFIG_SMP
struct
smp_ops_t
{
void
(
*
message_pass
)(
int
target
,
int
msg
,
unsigned
long
data
,
int
wait
);
int
(
*
probe
)(
void
);
void
(
*
kick_cpu
)(
int
nr
);
void
(
*
setup_cpu
)(
int
nr
);
void
(
*
take_timebase
)(
void
);
void
(
*
give_timebase
)(
void
);
};
#endif
struct
machdep_calls
{
/* High use functions in the first cachelines, low use functions
* follow. DRENG collect profile data.
...
...
@@ -58,14 +69,6 @@ struct machdep_calls {
void
(
*
tce_free_one
)(
struct
TceTable
*
tbl
,
long
tcenum
);
void
(
*
smp_message_pass
)(
int
target
,
int
msg
,
unsigned
long
data
,
int
wait
);
void
(
*
smp_probe
)(
void
);
void
(
*
smp_kick_cpu
)(
int
nr
);
void
(
*
smp_setup_cpu
)(
int
nr
);
void
(
*
setup_arch
)(
void
);
/* Optional, may be NULL. */
void
(
*
setup_residual
)(
struct
seq_file
*
m
,
int
cpu_id
);
...
...
@@ -145,6 +148,11 @@ struct machdep_calls {
/* this is for modules, since _machine can be a define -- Cort */
int
ppc_machine
;
#ifdef CONFIG_SMP
/* functions for dealing with other cpus */
struct
smp_ops_t
smp_ops
;
#endif
/* CONFIG_SMP */
};
extern
struct
machdep_calls
ppc_md
;
...
...
include/asm-ppc64/smp.h
View file @
7a3182b1
...
...
@@ -30,7 +30,6 @@
extern
unsigned
long
cpu_online_map
;
extern
void
smp_message_pass
(
int
target
,
int
msg
,
unsigned
long
data
,
int
wait
);
extern
void
smp_store_cpu_info
(
int
id
);
extern
void
smp_send_tlb_invalidate
(
int
);
extern
void
smp_send_xmon_break
(
int
cpu
);
struct
pt_regs
;
...
...
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