On 26/06/18 08:35, Jan Beulich wrote:
> Correct a log message and, to clarify code as well, rename the
> respective function parameter too.
>
> Signed-off-by: Jan Beulich <jbeul...@suse.com>
>
> --- a/xen/arch/x86/acpi/cpu_idle.c
> +++ b/xen/arch/x86/acpi/cpu_idle.c
> @@ -1172,7 +1172,7 @@ static void print_cx_pminfo(uint32_t cpu
>  #define print_cx_pminfo(c, p)
>  #endif
>  
> -long set_cx_pminfo(uint32_t cpu, struct xen_processor_power *power)
> +long set_cx_pminfo(uint32_t acpi_id, struct xen_processor_power *power)
>  {
>      XEN_GUEST_HANDLE(xen_processor_cx_t) states;
>      xen_processor_cx_t xen_cx;
> @@ -1185,16 +1185,16 @@ long set_cx_pminfo(uint32_t cpu, struct
>      if ( pm_idle_save && pm_idle != acpi_processor_idle )
>          return 0;
>  
> -    print_cx_pminfo(cpu, power);
> +    print_cx_pminfo(acpi_id, power);
>  
>      /* map from acpi_id to cpu_id */

You can drop this comment, seeing as it is completely redundant with the
next line.

Either way, Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com>

> -    cpu_id = get_cpu_id(cpu);
> +    cpu_id = get_cpu_id(acpi_id);
>      if ( cpu_id == -1 )
>      {
>          static bool warn_once = true;
>  
>          if ( warn_once || opt_cpu_info )
> -            printk(XENLOG_WARNING "No CPU ID for APIC ID %#x\n", cpu);
> +            printk(XENLOG_WARNING "No CPU for ACPI ID %#x\n", acpi_id);
>          warn_once = false;
>          return -EINVAL;
>      }
>
>
>
>


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to