| 150 | } |
| 151 | |
| 152 | static bool is_sme_supported(void) |
| 153 | { |
| 154 | cpuid_result_t cpuid_regs; |
| 155 | |
| 156 | if (cpuid(0x80000000) < 0x8000001f) |
| 157 | return false; |
| 158 | |
| 159 | cpuid_regs = cpuid_ext(0x8000001f, 0x0); |
| 160 | return !!(cpuid_regs.eax & 1); |
| 161 | } |
| 162 | |
| 163 | static bool is_sme_enabled(int cpunum) |
| 164 | { |