aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect/bisect.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-11-24 08:04:20 +0100
committerDmitry Vyukov <dvyukov@google.com>2025-11-24 08:55:49 +0000
commit9174555f6d933d77dace419771065710ef6df014 (patch)
treee272115ab3fa416d5105163934b5faa1f0c5fc5c /pkg/bisect/bisect.go
parenta6deb8053825b4c7024c2b04f5d4f5a12ace1272 (diff)
pkg/osutil: move Semaphore from pkg/instance
Semaphore is a very low-level primitive type, while pkg/instance is a very high-level package with lots of deps. Semaphore does not belong there, and may lead to cyclic deps if we use it more. Move it to pkg/osutil. It's not really OS-specific, but we don't have a better package.
Diffstat (limited to 'pkg/bisect/bisect.go')
-rw-r--r--pkg/bisect/bisect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go
index 55a5d44f7..a37436495 100644
--- a/pkg/bisect/bisect.go
+++ b/pkg/bisect/bisect.go
@@ -36,8 +36,8 @@ type Config struct {
Syzkaller SyzkallerConfig
Repro ReproConfig
Manager *mgrconfig.Config
- BuildSemaphore *instance.Semaphore
- TestSemaphore *instance.Semaphore
+ BuildSemaphore *osutil.Semaphore
+ TestSemaphore *osutil.Semaphore
BuildCPUs int
// CrossTree specifies whether a cross tree bisection is to take place, i.e.
// Kernel.Commit is not reachable from Kernel.Branch.