1 /* 2 * SPDX-License-Identifier: GPL-2.0-or-later 3 * Host specific cpu identification for LoongArch 4 */ 5 6 #ifndef HOST_CPUINFO_H 7 #define HOST_CPUINFO_H 8 9 #define CPUINFO_ALWAYS (1u << 0) /* so cpuinfo is nonzero */ 10 #define CPUINFO_LSX (1u << 1) 11 #define CPUINFO_LASX (1u << 2) 12 13 /* Initialized with a constructor. */ 14 extern unsigned cpuinfo; 15 16 /* 17 * We cannot rely on constructor ordering, so other constructors must 18 * use the function interface rather than the variable above. 19 */ 20 unsigned cpuinfo_init(void); 21 22 #endif /* HOST_CPUINFO_H */ 23