Changeset 2211

Show
Ignore:
Timestamp:
01/09/04 22:35:27 (9 years ago)
Author:
khali
Message:

Get rid of the lm90 hyst exception.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/etc/sensors.conf.eg

    r2201 r2211  
    16331633#   set tcrit2 85 
    16341634 
    1635 # change the hysteresis value to fit your needs 
    1636 # This is a little bit tricky. Under Linux 2.4, this is a relative value 
    1637 # and applies to both critical thresholds. This is a direct representation 
    1638 # of the chipset register. 
    1639 #   set hyst 5 
    1640 # Under Linux 2.6 however, this is an absolute value and applies to 
    1641 # tcrit2. Keep in mind that this is still internally represented as a 
    1642 # relative, common value (because there's a single register, holding a 
    1643 # relative value, in the chipset itself) so it is important to set it 
    1644 # *after* setting tcrit2 (i.e. don't change the set lines order). 
    1645 #   set hyst 80 
    1646 # Tcrit1 hysteresis value will be set automatically, with the same delta. 
    1647 # In this example (with tcrit1=75 and tcrit2=85), the internal register 
    1648 # would be set to 5, and the hysteresis temperature for tcrit1 would be 70. 
    1649 # Note that the internal register cannot hold values greater than 31, so 
    1650 # the delta between critical temperatures and respective absolute hysteresis 
    1651 # can never exceed this value. 
     1635# change the hysteresis values (to critical limits) to fit your needs 
     1636# note #1: hyst2 will be automatically set with the same delta 
     1637# note #2: the internal register, which stores a single, relative value 
     1638# for both channels, cannot hold values greater than 31, so the delta 
     1639# between critical temperatures and respective absolute hysteresis can 
     1640# never exceed this value 
     1641#   set hyst1 70 
    16521642 
    16531643chip "vt1211-*" "vt8231-*" 
  • lm-sensors/trunk/lib/proc.c

    r2204 r2211  
    430430                temp%d -> temp_input%d 
    431431                tcrit%d -> temp_crit%d 
     432                hyst%d -> temp_hyst%d 
    432433        AND all conversions listed in the matches[] structure below. 
    433434 
     
    565566                return 0; 
    566567        } 
     568        if(sscanf(name, "hyst%d%c", &num, &check) == 1) { 
     569                sprintf(sysname, "temp_hyst%d", num); 
     570                *sysmag = TEMPMAG; 
     571                return 0; 
     572        } 
    567573        if(sscanf(name, "temp%d%c", &num, &check) == 1) { 
    568574                sprintf(sysname, "temp_input%d", num);