Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch/x86/x86



Module Name:    src
Committed By:   rumble
Date:           Sun Dec  2 22:44:57 UTC 2007

Modified Files:
        src/sys/arch/x86/x86: iclockmod.c

Log Message:
Fix two minor bugs:
 1) If ODCM is disabled (ODCM_ENABLE not set), clockmod_getstate() should
    return the maximum level (7), not the lowest (0), as the levels are
    defined as duty cycles where the highest implies no ODCM. Now sysctl
    machdep.clockmod.current doesn't lie upon init.

 2) Make the sysctl handler ensure that no disabled levels are permitted.
    Previously, a level disabled due to errata could be passed to
    clockmod_setstate(), which would search through the state array,
    skipping the unusable value. Consequently our index would be out of
    range and badness could ensue.

Okay'd by xtraeme@.


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 src/sys/arch/x86/x86/iclockmod.c

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




Home | Main Index | Thread Index | Old Index