Skip to content

Commit

Permalink
hw-mgmt: scripts: Fix insert coretemp module on AMD systems
Browse files Browse the repository at this point in the history
Fix issue "Failed to insert module 'coretemp': No such device".
Module 'coretemp' doesn't support AND CPU.

Bug: 4042338

Signed-off-by: Oleksandr Shamray <[email protected]>
  • Loading branch information
sholeksandr committed Aug 27, 2024
1 parent 050edda commit 72cef17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion usr/etc/modules-load.d/05-hw-management-modules.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ i2c-dev
pmbus
tps53679
max1363
coretemp
lm75
tmp102
ledtrig-timer
Expand Down
9 changes: 9 additions & 0 deletions usr/usr/bin/hw-management.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,15 @@ load_modules()
modprobe drivetemp
fi
fi
case $cpu_type in
$AMD_SNW_CPU)
# coretemp driver supported only on Intel chips
;;
*)
modprobe coretemp
;;
esac

case $sku in
HI162|HI166|HI167) # Juliet
modprobe i2c_asf
Expand Down

0 comments on commit 72cef17

Please sign in to comment.