Mention branches and keyring.
[releases.git] / x86 / include / asm / cpuid.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * CPUID-related helpers/definitions
4  *
5  * Derived from arch/x86/kvm/cpuid.c
6  */
7
8 #ifndef _ASM_X86_CPUID_H
9 #define _ASM_X86_CPUID_H
10
11 static __always_inline bool cpuid_function_is_indexed(u32 function)
12 {
13         switch (function) {
14         case 4:
15         case 7:
16         case 0xb:
17         case 0xd:
18         case 0xf:
19         case 0x10:
20         case 0x12:
21         case 0x14:
22         case 0x17:
23         case 0x18:
24         case 0x1d:
25         case 0x1e:
26         case 0x1f:
27         case 0x8000001d:
28                 return true;
29         }
30
31         return false;
32 }
33
34 #endif /* _ASM_X86_CPUID_H */