![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * CPU feature definitions for module loading, used by 0004 * module_cpu_feature_match(), see uapi/asm/hwcap.h for MIPS CPU features. 0005 */ 0006 0007 #ifndef __ASM_CPUFEATURE_H 0008 #define __ASM_CPUFEATURE_H 0009 0010 #include <uapi/asm/hwcap.h> 0011 #include <asm/elf.h> 0012 0013 #define MAX_CPU_FEATURES (8 * sizeof(elf_hwcap)) 0014 0015 #define cpu_feature(x) ilog2(HWCAP_ ## x) 0016 0017 static inline bool cpu_have_feature(unsigned int num) 0018 { 0019 return elf_hwcap & (1UL << num); 0020 } 0021 0022 #endif /* __ASM_CPUFEATURE_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |