Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2008 19:13:52 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_cpu.c
Message-ID:  <200805051913.m45JDqNY009522@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805051913.m45JDqNY009522>