Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > main-updates-src > by-pkgid > 5cb1d497c3325229c0a31b99e1935d2d > files > 2

lm_sensors-3.3.1-9.1.src.rpm

--- lm_sensors-3.3.1/CHANGES.cpuid	2011-07-22 00:36:42.000000000 +0400
+++ lm_sensors-3.3.1/CHANGES	2011-09-02 17:18:45.478261225 +0400
@@ -5,6 +5,7 @@ lm-sensors CHANGES file
   isadump: Add support for word (16-bit) and long (32-bit) reads
   isaset: Add support for word (16-bit) and long (32-bit) writes
   sensors.conf.default: Add a section for the EMC6W201
+                  Fix loading of the cpuid module
   sensors-detect: Add AMD family 15h CPU detection
                   Add detection of ADT7461A / NCT1008
                   Add detection of ITE IT8516E/F/G
--- lm_sensors-3.3.1/prog/detect/sensors-detect.cpuid	2011-07-10 23:22:53.000000000 +0400
+++ lm_sensors-3.3.1/prog/detect/sensors-detect	2011-09-02 17:18:45.476261250 +0400
@@ -6620,7 +6620,7 @@ sub main
 	      "Do you want to scan for them? This is totally safe. (YES/no): ";
 	unless (<STDIN> =~ /^\s*n/i) {
 		# Load the cpuid driver if needed
-		unless (-e "/dev/cpu/$cpu[0]->{nr}/cpuid") {
+		unless (-e "$sysfs_root/class/cpuid") {
 			load_module("cpuid");
 			udev_settle();
 		}