diff options
author | Michael Munday <munday@ca.ibm.com> | 2016-10-17 17:10:24 -0400 |
---|---|---|
committer | Michael Munday <munday@ca.ibm.com> | 2016-10-19 21:50:13 +0000 |
commit | f1ad4863aae1fd5cd5d0e3e4e6cb6bfae62951a6 (patch) | |
tree | c9b8619f350882ba8445a8dde0f1d9007a641483 /src/runtime/os_linux_arm.go | |
parent | 2be3ab441578413972d93fc1048decc422640b09 (diff) | |
download | go-f1ad4863aae1fd5cd5d0e3e4e6cb6bfae62951a6.tar.gz go-f1ad4863aae1fd5cd5d0e3e4e6cb6bfae62951a6.zip |
runtime: get s390x vector facility availability from AT_HWCAP
This is a more robust method for obtaining the availability of vx.
Since this variable may be checked frequently I've also now
padded it so that it will be in its own cache line.
I've kept the other check (in hash/crc32) the same for now until
I can figure out the best way to update it.
Updates #15403.
Change-Id: I74eed651afc6f6a9c5fa3b88fa6a2b0c9ecf5875
Reviewed-on: https://go-review.googlesource.com/31149
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/os_linux_arm.go')
-rw-r--r-- | src/runtime/os_linux_arm.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/runtime/os_linux_arm.go b/src/runtime/os_linux_arm.go index d7d734bc7f..2b0834a5aa 100644 --- a/src/runtime/os_linux_arm.go +++ b/src/runtime/os_linux_arm.go @@ -8,7 +8,6 @@ import "unsafe" const ( _AT_PLATFORM = 15 // introduced in at least 2.6.11 - _AT_HWCAP = 16 // introduced in at least 2.6.11 _HWCAP_VFP = 1 << 6 // introduced in at least 2.6.11 _HWCAP_VFPv3 = 1 << 13 // introduced in 2.6.30 |