arch/s390/include/asm/cpufeature.h

Source file repositories/reference/linux-study-clean/arch/s390/include/asm/cpufeature.h

File Facts

System
Linux kernel
Corpus path
arch/s390/include/asm/cpufeature.h
Extension
.h
Size
942 bytes
Lines
38
Domain
Architecture Layer
Bucket
arch/s390
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __ASM_S390_CPUFEATURE_H
#define __ASM_S390_CPUFEATURE_H

#include <asm/facility.h>

enum {
	S390_CPU_FEATURE_MSA,
	S390_CPU_FEATURE_VXRS,
	S390_CPU_FEATURE_UV,
	S390_CPU_FEATURE_D288,
	MAX_CPU_FEATURES
};

#define cpu_feature(feature)	(feature)

int cpu_have_feature(unsigned int nr);

#define cpu_has_bear()		test_facility(193)
#define cpu_has_edat1()		test_facility(8)
#define cpu_has_edat2()		test_facility(78)
#define cpu_has_gs()		test_facility(133)
#define cpu_has_nx()		test_facility(130)
#define cpu_has_rdp()		test_facility(194)
#define cpu_has_seq_insn()	test_facility(85)
#define cpu_has_tlb_lc()	test_facility(51)
#define cpu_has_topology()	test_facility(11)
#define cpu_has_vx()		test_facility(129)

#endif /* __ASM_S390_CPUFEATURE_H */

Annotation

Implementation Notes