1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-13 20:30:03 +00:00

cpu: document canonical sources of supported CPU flags

This commit is contained in:
Yaakov Selkowitz 2022-10-14 14:04:36 -04:00
parent dc117105ec
commit cba7ad6552
4 changed files with 17 additions and 4 deletions

View file

@ -26,7 +26,10 @@ unsigned long gethwcap() {
*/
import "C"
/* all special features for arm should be defined here */
/*
all special features for arm should be defined here; canonical list:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/include/uapi/asm/hwcap.h
*/
const (
/* extension instructions */
CPU_ARM_FEATURE_SWP = 1 << iota

View file

@ -29,7 +29,10 @@ unsigned long gethwcap2() {
*/
import "C"
/* all special features for arm64 should be defined here */
/*
all special features for arm64 should be defined here; canonical list:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/include/uapi/asm/hwcap.h
*/
const (
/* extension instructions */
CPU_ARM64_FEATURE_FP = 1 << iota

View file

@ -28,7 +28,10 @@ unsigned long gethwcap2() {
*/
import "C"
/* all special features for ppc64le should be defined here */
/*
all special features for ppc64le should be defined here; canonical list:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/include/uapi/asm/cputable.h
*/
const (
/* AT_HWCAP features */
PPC_FEATURE_32 = 0x80000000 /* 32-bit mode. */

View file

@ -25,7 +25,11 @@ unsigned long gethwcap() {
*/
import "C"
/* all special features for s390x should be defined here */
/*
all special features for s390x should be defined here; canonical list:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/s390/include/asm/elf.h
http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/s390/bits/hwcap.h;hb=HEAD
*/
const (
/* AT_HWCAP features */
HWCAP_S390_ESAN3 = 1