Changeset 5993 for lm-sensors/trunk/prog

Show
Ignore:
Timestamp:
08/25/11 21:28:13 (9 months ago)
Author:
khali
Message:

Fix loading of the cpuid module. On non-udev systems, or even on udev
systems where /dev/cpu/0/cpuid is part of the static device node tree,
the previous test would succeed even when the cpuid module isn't
loaded, resulting in missing detections (of coretemp-supported CPU
models in particuler.) Check if the module is loaded by looking in
sysfs instead, this is much more reliable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5992 r5993  
    66166616        unless (<STDIN> =~ /^\s*n/i) { 
    66176617                # Load the cpuid driver if needed 
    6618                 unless (-e "/dev/cpu/$cpu[0]->{nr}/cpuid") { 
     6618                unless (-e "$sysfs_root/class/cpuid") { 
    66196619                        load_module("cpuid"); 
    66206620                        udev_settle();