933f01c077
of the cpuid module. - lm_sensors-r6016-handle-superio-wo-logdev.patch: Properly handle Super-I/O chips without logical device. - lm_sensors-r6017-fix-sysfs-detection.patch: libsensors: Change sysfs detection to survive upcoming kernel changes (bnc#751180). - lm_sensors-r6025-sensord-fix-memory-leaks.patch: sensord: Fix memory leaks revealed by valgrind (bnc#751177). - lm_sensors-r6030-fix-power-interval-output.patch: Fix power interval output. OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=46
23 lines
891 B
Diff
23 lines
891 B
Diff
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.
|
|
|
|
---
|
|
prog/detect/sensors-detect | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- lm_sensors-3.3.1.orig/prog/detect/sensors-detect
|
|
+++ lm_sensors-3.3.1/prog/detect/sensors-detect
|
|
@@ -6636,7 +6636,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();
|
|
}
|