aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/time_windows_amd64.s
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2023-09-07 16:02:11 +0200
committerQuim Muntal <quimmuntal@gmail.com>2023-09-07 17:19:45 +0000
commit4beb33018b35d3a68f0ce41bee10f56512d1696e (patch)
treea214e4c352dd6312fc89475ce14583ec29b09089 /src/runtime/time_windows_amd64.s
parent31c1f4a61136537c5b9ead371772853e772991bb (diff)
downloadgo-4beb33018b35d3a68f0ce41bee10f56512d1696e.tar.xz
runtime: remove slow time compatibility hacks for wine
This reapplies CL 191759, which was reverted in CL 192622. Wine fixed the compatibility issue more than 3 years ago, in version 5.10 (see [1]). We no longer have to keep the compatibility hack on our side. Updates #34021 [1]: https://github.com/wine-mirror/wine/commit/1ae10889647c1c84c36660749508a42e99e64a5e Change-Id: I3b77701d01fdf58fbf350321fc0a957c0f247d32 Reviewed-on: https://go-review.googlesource.com/c/go/+/526358 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Quim Muntal <quimmuntal@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/time_windows_amd64.s')
-rw-r--r--src/runtime/time_windows_amd64.s6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/runtime/time_windows_amd64.s b/src/runtime/time_windows_amd64.s
index 226f2b5136..d3fcf2e11e 100644
--- a/src/runtime/time_windows_amd64.s
+++ b/src/runtime/time_windows_amd64.s
@@ -9,9 +9,6 @@
#include "time_windows.h"
TEXT time·now(SB),NOSPLIT,$0-24
- CMPB runtime·useQPCTime(SB), $0
- JNE useQPC
-
MOVQ $_INTERRUPT_TIME, DI
MOVQ time_lo(DI), AX
IMULQ $100, AX
@@ -37,6 +34,3 @@ TEXT time·now(SB),NOSPLIT,$0-24
SUBQ DX, CX
MOVL CX, nsec+8(FP)
RET
-useQPC:
- JMP runtime·nowQPC(SB)
- RET