summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/ptrace/subprocess.go
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2020-09-09 12:47:24 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-09 12:48:57 -0700
commitf3172c3a11dda8aa21bbaf51b7f63196592cf1da (patch)
treebcbef0c63d3225343590d1d1111a0e72209b0a17 /pkg/sentry/platform/ptrace/subprocess.go
parentfb281eea75799d662790cdf86ce0d55dc56b7470 (diff)
Don't sched_setaffinity in ptrace platform.
PiperOrigin-RevId: 330777900
Diffstat (limited to 'pkg/sentry/platform/ptrace/subprocess.go')
-rw-r--r--pkg/sentry/platform/ptrace/subprocess.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/sentry/platform/ptrace/subprocess.go b/pkg/sentry/platform/ptrace/subprocess.go
index e1d54d8a2..812ab80ef 100644
--- a/pkg/sentry/platform/ptrace/subprocess.go
+++ b/pkg/sentry/platform/ptrace/subprocess.go
@@ -518,11 +518,6 @@ func (s *subprocess) switchToApp(c *context, ac arch.Context) bool {
}
defer c.interrupt.Disable()
- // Ensure that the CPU set is bound appropriately; this makes the
- // emulation below several times faster, presumably by avoiding
- // interprocessor wakeups and by simplifying the schedule.
- t.bind()
-
// Set registers.
if err := t.setRegs(regs); err != nil {
panic(fmt.Sprintf("ptrace set regs (%+v) failed: %v", regs, err))