diff mbox series

[1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match

Message ID 20201119184246.228322-1-NaveenKrishna.Chatradhi@amd.com (mailing list archive)
State Accepted
Headers show
Series [1/2] hwmon: (amd_energy) Add AMD family 19h model 01h x86 match | expand

Commit Message

Naveen Krishna Chatradhi Nov. 19, 2020, 6:42 p.m. UTC
Add X86 CPU match for AMD family 19h model 01h. This is necessary to
enable support for energy reporting via the amd_energy module.

Signed-off-by: Naveen Krishna Chatradhi <NaveenKrishna.Chatradhi@amd.com>
---
 drivers/hwmon/amd_energy.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Guenter Roeck Nov. 22, 2020, 3:26 p.m. UTC | #1
On Fri, Nov 20, 2020 at 12:12:45AM +0530, Naveen Krishna Chatradhi wrote:
> Add X86 CPU match for AMD family 19h model 01h. This is necessary to
> enable support for energy reporting via the amd_energy module.
> 
> Signed-off-by: Naveen Krishna Chatradhi <NaveenKrishna.Chatradhi@amd.com>

Applied.

Thanks,
Guenter

> ---
>  drivers/hwmon/amd_energy.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwmon/amd_energy.c b/drivers/hwmon/amd_energy.c
> index 3197cda7bcd9..9b306448b7a0 100644
> --- a/drivers/hwmon/amd_energy.c
> +++ b/drivers/hwmon/amd_energy.c
> @@ -331,6 +331,7 @@ static struct platform_device *amd_energy_platdev;
>  
>  static const struct x86_cpu_id cpu_ids[] __initconst = {
>  	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x17, 0x31, NULL),
> +	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x19, 0x01, NULL),
>  	{}
>  };
>  MODULE_DEVICE_TABLE(x86cpu, cpu_ids);
diff mbox series

Patch

diff --git a/drivers/hwmon/amd_energy.c b/drivers/hwmon/amd_energy.c
index 3197cda7bcd9..9b306448b7a0 100644
--- a/drivers/hwmon/amd_energy.c
+++ b/drivers/hwmon/amd_energy.c
@@ -331,6 +331,7 @@  static struct platform_device *amd_energy_platdev;
 
 static const struct x86_cpu_id cpu_ids[] __initconst = {
 	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x17, 0x31, NULL),
+	X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x19, 0x01, NULL),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, cpu_ids);