]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (k10temp): Use cpu_feature_enabled() for detecting zen
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 20 Aug 2024 05:35:57 +0000 (00:35 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 27 Aug 2024 15:11:15 +0000 (08:11 -0700)
commit4599510091a1d6d4759f1302dff32b24481eec15
tree3b19ba66ded4b22419ac2d4c844870ff1d9fddd3
parent0050c167016b599c9a3fe79a8f021898a6211d83
hwmon: (k10temp): Use cpu_feature_enabled() for detecting zen

This removes some boilerplate from the code and will allow adding
future CPUs by just device IDs.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Message-ID: <20240820053558.1052853-1-superm1@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/k10temp.c