Re: [PATCH v5 2/4] ACPI: CPPC: Make autonomous selection helpers take a u64
From: K Prateek Nayak
Date: Wed Sep 16 2026 - 15:04:19 EST
Hello Sumit,
On 9/16/2026 4:08 PM, Sumit Gupta wrote:
> cppc_get_auto_sel()/cppc_set_auto_sel() use a bool, unlike the other
> CPPC register get/set helpers which use a u64.
>
> The next patch in this series saves and restores the OSPM-set registers
> across CPU hotplug and driver unload through a common table of register
> get/set helpers that all take a u64. The bool autonomous selection
> helpers cannot be added to that table.
>
> Change cppc_get_auto_sel()/cppc_set_auto_sel() to take a u64 so the
> autonomous selection register fits alongside the others, and update
> their callers.
>
> Signed-off-by: Sumit Gupta <sumitg@xxxxxxxxxx>
For amd-pstate bits, feel free to include:
Reviewed-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>
Tested-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>
--
Thanks and Regards,
Prateek