[BACK]Return to identcpu_subr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/x86/x86/identcpu_subr.c between version 1.4 and 1.5

version 1.4, 2020/05/12 06:32:05 version 1.5, 2020/06/09 05:06:27
Line 71  cpu_tsc_freq_cpuid(struct cpu_info *ci)
Line 71  cpu_tsc_freq_cpuid(struct cpu_info *ci)
         x86_cpuid(0x15, descs);          x86_cpuid(0x15, descs);
         denominator = descs[0];          denominator = descs[0];
         numerator = descs[1];          numerator = descs[1];
         if ((denominator == 0) || numerator == 0) {          if ((denominator != 0) && numerator != 0) {
                 aprint_debug_dev(ci->ci_dev,  
                     "TSC/core crystal clock ratio is not enumerated\n");  
         } else {  
                 khz = 0;                  khz = 0;
                 if (descs[2] != 0)                  if (descs[2] != 0)
                         khz = descs[2] / 1000;                          khz = descs[2] / 1000;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>