cvs commit: src/sys/kern kern_cpu.c

John Baldwin jhb at FreeBSD.org
Mon May 5 19:13:53 UTC 2008


jhb         2008-05-05 19:13:52 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_cpu.c 
  Log:
  Fix a few edge cases with error handling in cpufreq(4)'s CPUFREQ_GET()
  method:
  - If the last of the child cpufreq drivers returns an error while trying to
    fetch its list of supported frequencies but an earlier driver found the
    requested frequency, don't return an error to the caller.
  - If all of the child cpufreq drivers fail and the attempt to match the
    frequency based on 'cpu_est_clockrate()' fails, return ENXIO rather than
    returning success and returning a frequency of CPUFREQ_VAL_UNKNOWN.
  
  MFC after:      3 days
  PR:             kern/121433
  Reported by:    Eugene Grosbein  eugen ! kuzbass dot ru
  
  Revision  Changes    Path
  1.30      +3 -3      src/sys/kern/kern_cpu.c


More information about the cvs-all mailing list