Skip to content

Commit 2ed55fe

Browse files
Replay "Normally context switches happen [...]" for IP30 and IP27
Took sys/arch/octeon/octeon/machdep.c as example from commit bb00e81.
1 parent d567af3 commit 2ed55fe

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

sys/arch/sgi/sgi/ip27_machdep.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,8 +1185,6 @@ hw_ipi_intr_establish(int (*func)(void *), u_long cpuid)
11851185
void
11861186
hw_cpu_hatch(struct cpu_info *ci)
11871187
{
1188-
int s;
1189-
11901188
setcurcpu(ci);
11911189

11921190
/*
@@ -1225,8 +1223,7 @@ hw_cpu_hatch(struct cpu_info *ci)
12251223
spl0();
12261224
(void)updateimask(0);
12271225

1228-
SCHED_LOCK(s);
1229-
cpu_switchto(NULL, sched_chooseproc());
1226+
sched_toidle();
12301227
}
12311228

12321229
void

sys/arch/sgi/sgi/ip30_machdep.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,6 @@ hw_cpu_boot_secondary(struct cpu_info *ci)
541541
void
542542
hw_cpu_hatch(struct cpu_info *ci)
543543
{
544-
int s;
545-
546544
/*
547545
* Set curcpu address on this processor.
548546
*/
@@ -583,8 +581,7 @@ hw_cpu_hatch(struct cpu_info *ci)
583581
spl0();
584582
(void)updateimask(0);
585583

586-
SCHED_LOCK(s);
587-
cpu_switchto(NULL, sched_chooseproc());
584+
sched_toidle();
588585
}
589586

590587
int

0 commit comments

Comments
 (0)