diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-24 15:38:14 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-24 17:13:58 +0200 |
commit | 88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1 (patch) | |
tree | 0d4d50510a45a02873a3797f2fe0fb761a8872a9 /vendor/golang.org/x/sys/cpu | |
parent | 0f92cf22a69876975ca6ad97a08751bf2008e257 (diff) | |
download | podman-88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1.tar.gz podman-88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1.tar.bz2 podman-88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1.zip |
vendor containers/psgo@v1.7.3
Add three new capabilities that would otherwise be reported as unknown.
Also add an e2e test making sure that `podman top` knows all
capabilities of the current kernel. I refrained from adding a system
test since this may blow up in gating tests.
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'vendor/golang.org/x/sys/cpu')
-rw-r--r-- | vendor/golang.org/x/sys/cpu/cpu_arm64.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/golang.org/x/sys/cpu/cpu_arm64.go b/vendor/golang.org/x/sys/cpu/cpu_arm64.go index bbaba18bc..f3eb993bf 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_arm64.go +++ b/vendor/golang.org/x/sys/cpu/cpu_arm64.go @@ -6,7 +6,10 @@ package cpu import "runtime" -const cacheLineSize = 64 +// cacheLineSize is used to prevent false sharing of cache lines. +// We choose 128 because Apple Silicon, a.k.a. M1, has 128-byte cache line size. +// It doesn't cost much and is much more future-proof. +const cacheLineSize = 128 func initOptions() { options = []option{ |