]> Cypherpunks repositories - gostls13.git/commit
runtime: fix usleep on s390x/linux
authorPaul Murphy <murp@ibm.com>
Wed, 12 Feb 2025 14:45:34 +0000 (08:45 -0600)
committerPaul Murphy <murp@ibm.com>
Thu, 13 Feb 2025 19:05:31 +0000 (11:05 -0800)
commitca4649747a0057ea59c34c4126ab3eed6086dd88
tree7ff4a50cdaf3748f5434a10ebe0060b447428fcf
parent769274bf14f318f186ae1f89fd0fccb18241aaee
runtime: fix usleep on s390x/linux

The timespec argument takes the remainder in nanoseconds, not
microseconds. Convert the remaining time to nsec.

Fixes #71714

Change-Id: I36cbbe3a088830c5e3afcc9516ef42e96ee21268
Reviewed-on: https://go-review.googlesource.com/c/go/+/648915
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Reviewed-by: Axel Busch <axel.busch@ibm.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Vishwanatha HD <vishwanatha.hd@ibm.com>
src/runtime/sys_linux_s390x.s