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
ff9bc96c
Commit
ff9bc96c
authored
Mar 12, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: remove task migration IPI, add xmon IPI
parent
3d5675c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
32 deletions
+11
-32
arch/ppc64/kernel/smp.c
arch/ppc64/kernel/smp.c
+3
-32
arch/ppc64/kernel/xics.c
arch/ppc64/kernel/xics.c
+8
-0
No files found.
arch/ppc64/kernel/smp.c
View file @
ff9bc96c
...
...
@@ -360,37 +360,6 @@ void smp_local_timer_interrupt(struct pt_regs * regs)
}
}
static
spinlock_t
migration_lock
=
SPIN_LOCK_UNLOCKED
;
static
task_t
*
new_task
;
/*
* This function sends a 'task migration' IPI to another CPU.
* Must be called from syscall contexts, with interrupts *enabled*.
*/
void
smp_migrate_task
(
int
cpu
,
task_t
*
p
)
{
/*
* The target CPU will unlock the migration spinlock:
*/
spin_lock
(
&
migration_lock
);
new_task
=
p
;
smp_message_pass
(
cpu
,
PPC_MSG_MIGRATE_TASK
,
0
,
0
);
}
/*
* Task migration callback.
*/
static
void
smp_task_migration_interrupt
(
void
)
{
task_t
*
p
;
/* Should we ACK the IPI interrupt early? */
p
=
new_task
;
spin_unlock
(
&
migration_lock
);
sched_task_migrated
(
p
);
}
void
smp_message_recv
(
int
msg
,
struct
pt_regs
*
regs
)
{
switch
(
msg
)
{
...
...
@@ -401,9 +370,11 @@ void smp_message_recv(int msg, struct pt_regs *regs)
/* XXX Do we have to do this? */
set_need_resched
();
break
;
#if 0
case PPC_MSG_MIGRATE_TASK:
smp_task_migration_interrupt
();
/* spare */
break;
#endif
#ifdef CONFIG_XMON
case
PPC_MSG_XMON_BREAK
:
xmon
(
regs
);
...
...
arch/ppc64/kernel/xics.c
View file @
ff9bc96c
...
...
@@ -258,10 +258,18 @@ void xics_ipi_action(int irq, void *dev_id, struct pt_regs *regs)
mb
();
smp_message_recv
(
PPC_MSG_RESCHEDULE
,
regs
);
}
#if 0
if (test_and_clear_bit(PPC_MSG_MIGRATE_TASK, &xics_ipi_message[cpu])) {
mb();
smp_message_recv(PPC_MSG_MIGRATE_TASK, regs);
}
#endif
#ifdef CONFIG_XMON
if
(
test_and_clear_bit
(
PPC_MSG_XMON_BREAK
,
&
xics_ipi_message
[
cpu
]))
{
mb
();
smp_message_recv
(
PPC_MSG_XMON_BREAK
,
regs
);
}
#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