Skip to content

Commit

Permalink
ACPI: processor: Refine messages in acpi_early_processor_control_setup()
Browse files Browse the repository at this point in the history
The source and meaning of the messages printed by
acpi_early_processor_control_setup() is unclear, so add a pr_fmt()
definition to acpi_processor.c and expand the messages to make it
clear that they are about CPUs.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Michal Wilczynski <michal.wilczynski@intel.com>
  • Loading branch information
Rafael J. Wysocki committed Jul 20, 2023
1 parent 11e7bf5 commit 003e069
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/acpi/acpi_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Copyright (C) 2013, Intel Corporation
* Rafael J. Wysocki <rafael.j.wysocki@intel.com>
*/
#define pr_fmt(fmt) "ACPI: " fmt

#include <linux/acpi.h>
#include <linux/device.h>
Expand Down Expand Up @@ -611,9 +612,9 @@ static bool __init acpi_early_processor_osc(void)
void __init acpi_early_processor_control_setup(void)
{
if (acpi_early_processor_osc()) {
pr_info("_OSC evaluated successfully\n");
pr_info("_OSC evaluated successfully for all CPUs\n");
} else {
pr_info("_OSC evaluation failed, trying _PDC\n");
pr_info("_OSC evaluation for CPUs failed, trying _PDC\n");
acpi_early_processor_set_pdc();
}
}
Expand Down

0 comments on commit 003e069

Please sign in to comment.