Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.2 22 lines 510 B view raw
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * CPU feature definitions for module loading, used by 4 * module_cpu_feature_match(), see uapi/asm/hwcap.h for MIPS CPU features. 5 */ 6 7#ifndef __ASM_CPUFEATURE_H 8#define __ASM_CPUFEATURE_H 9 10#include <uapi/asm/hwcap.h> 11#include <asm/elf.h> 12 13#define MAX_CPU_FEATURES (8 * sizeof(elf_hwcap)) 14 15#define cpu_feature(x) ilog2(HWCAP_ ## x) 16 17static inline bool cpu_have_feature(unsigned int num) 18{ 19 return elf_hwcap & (1UL << num); 20} 21 22#endif /* __ASM_CPUFEATURE_H */