1 // Copyright 2017 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build !windows 6 // +build !windows 7 8 package runtime 9 10 // osRelaxMinNS is the number of nanoseconds of idleness to tolerate 11 // without performing an osRelax. Since osRelax may reduce the 12 // precision of timers, this should be enough larger than the relaxed 13 // timer precision to keep the timer error acceptable. 14 const osRelaxMinNS = 0 15 16 // osRelax is called by the scheduler when transitioning to and from 17 // all Ps being idle. 18 func osRelax(relax bool) {} 19