Commit 46b9441b authored by Guenter Roeck's avatar Guenter Roeck Committed by Pu Wen
Browse files

hwmon: (k10temp) Reorganize and simplify temperature support detection

mainline inclusion
from mainline-v5.7-rc1
commit 60465245
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7DX6V
CVE: NA

Reference: https://git.kernel.org/torvalds/c/60465245e6ce06691f1aa5d89c59b26679df7617



---------------------------

commit 60465245 upstream.

Use a bit map to describe if temperature channels are supported,
and use it for all temperature channels. Use a separate flag,
independent of Tdie support, to indicate if the system is running
on a Ryzen CPU.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
[fix conflict during backport]
Signed-off-by: default avatarPu Wen <puwen@hygon.cn>
parent d206906f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment