Skip to content

Commit 3ca2b71

Browse files
committed
Added GoSched() to scheduler_cores.go instead of incorrectly calling it in machine_rp2_cores.go
1 parent 8820b4e commit 3ca2b71

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/machine/machine_rp2_cores.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func LockCore(core int) {
2828
panic("machine: core out of range")
2929
}
3030
machineLockCore(core)
31-
runtime.Gosched()
3231
}
3332

3433
// UnlockCore unpins the calling goroutine, allowing it to run on any available core.

src/runtime/scheduler_cores.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func machineLockCore(core int) {
128128
t.Affinity = int8(core)
129129
}
130130
schedulerLock.Unlock()
131+
Gosched()
131132
}
132133

133134
// machineUnlockCore unpins the current goroutine.

0 commit comments

Comments
 (0)