diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2020-03-18 09:17:39 +0000 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-03-25 14:20:34 +0100 |
commit | e8e590ed88b26e0ffc554862a284b23fc8c9bdf3 (patch) | |
tree | 5ca8d35e46da42d4c958841303ffc79c8cb4e3be /vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go | |
parent | 69b011d3ac39b985cdbd2bacfa1eaeba166bf224 (diff) | |
download | podman-e8e590ed88b26e0ffc554862a284b23fc8c9bdf3.tar.gz podman-e8e590ed88b26e0ffc554862a284b23fc8c9bdf3.tar.bz2 podman-e8e590ed88b26e0ffc554862a284b23fc8c9bdf3.zip |
Bump github.com/rootless-containers/rootlesskit from 0.8.0 to 0.9.2
Bumps [github.com/rootless-containers/rootlesskit](https://github.com/rootless-containers/rootlesskit) from 0.8.0 to 0.9.2.
- [Release notes](https://github.com/rootless-containers/rootlesskit/releases)
- [Commits](https://github.com/rootless-containers/rootlesskit/compare/v0.8.0...v0.9.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go')
-rw-r--r-- | vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go b/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go new file mode 100644 index 000000000..eb24e5073 --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go @@ -0,0 +1,22 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build mips64 mips64le + +package cpu + +// HWCAP bits. These are exposed by the Linux kernel 5.4. +const ( + // CPU features + hwcap_MIPS_MSA = 1 << 1 +) + +func doinit() { + // HWCAP feature bits + MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) +} + +func isSet(hwc uint, value uint) bool { + return hwc&value != 0 +} |