turbostat.c (e4085d543e256aff6606ba99ed257f7c06685f3b) | turbostat.c (e8efbc80db5e824ce2382d5e65429b6b493e71e2) |
---|---|
1/* 2 * turbostat -- show CPU frequency and C-state residency 3 * on modern Intel turbo-capable processors. 4 * 5 * Copyright (c) 2013 Intel Corporation. 6 * Len Brown <len.brown@intel.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 3264 unchanged lines hidden (view full) --- 3273 if (debug && (ebx != 0)) 3274 fprintf(outf, "CPUID(0x15): eax_crystal: %d ebx_tsc: %d ecx_crystal_hz: %d\n", 3275 eax_crystal, ebx_tsc, crystal_hz); 3276 3277 if (crystal_hz == 0) 3278 switch(model) { 3279 case 0x4E: /* SKL */ 3280 case 0x5E: /* SKL */ | 1/* 2 * turbostat -- show CPU frequency and C-state residency 3 * on modern Intel turbo-capable processors. 4 * 5 * Copyright (c) 2013 Intel Corporation. 6 * Len Brown <len.brown@intel.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 3264 unchanged lines hidden (view full) --- 3273 if (debug && (ebx != 0)) 3274 fprintf(outf, "CPUID(0x15): eax_crystal: %d ebx_tsc: %d ecx_crystal_hz: %d\n", 3275 eax_crystal, ebx_tsc, crystal_hz); 3276 3277 if (crystal_hz == 0) 3278 switch(model) { 3279 case 0x4E: /* SKL */ 3280 case 0x5E: /* SKL */ |
3281 crystal_hz = 24000000; /* 24 MHz */ | 3281 crystal_hz = 24000000; /* 24.0 MHz */ |
3282 break; | 3282 break; |
3283 case 0x5C: /* BXT */ 3284 crystal_hz = 19200000; /* 19.2 MHz */ 3285 break; |
|
3283 default: 3284 crystal_hz = 0; 3285 } 3286 3287 if (crystal_hz) { 3288 tsc_hz = (unsigned long long) crystal_hz * ebx_tsc / eax_crystal; 3289 if (debug) 3290 fprintf(outf, "TSC: %lld MHz (%d Hz * %d / %d / 1000000)\n", --- 522 unchanged lines hidden --- | 3286 default: 3287 crystal_hz = 0; 3288 } 3289 3290 if (crystal_hz) { 3291 tsc_hz = (unsigned long long) crystal_hz * ebx_tsc / eax_crystal; 3292 if (debug) 3293 fprintf(outf, "TSC: %lld MHz (%d Hz * %d / %d / 1000000)\n", --- 522 unchanged lines hidden --- |