diff options
author | Jamie Liu <jamieliu@google.com> | 2020-09-09 12:47:24 -0700 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-09-09 17:53:10 -0700 |
commit | 031dd3fc2127e65c4187666999c348d3965a1d38 (patch) | |
tree | 33ab619d9d07699814d37bc82b4ca24ee759e321 /pkg/sentry/platform/ptrace/subprocess.go | |
parent | 29739be946d3fb0a257625a514b3a068afc686d2 (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.go | 5 |
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)) |