From: Jim Cromie Date: Tue, 25 Mar 2025 23:51:56 +0000 (-0600) Subject: powernow: use pr_info_once X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=91e53493eeaf0fd74de7d57a162420a067cb84b9;p=users%2Fjedix%2Flinux-maple.git powernow: use pr_info_once This reduces log-msgs during boot from many pages to ~10 occurrences. I didn't investigate why it wasn't just 1, maybe its a low-level service to other modules, re-probed by each of them ? Link: https://lkml.kernel.org/r/20250325235156.663269-4-jim.cromie@gmail.com Signed-off-by: Jim Cromie Cc: Andy Whitcroft Cc: Dwaipayan Ray Cc: Joe Perches Cc: Louis Chauvet Cc: Lukas Bulwahn Cc: Viresh Kumar Signed-off-by: Andrew Morton --- diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index 4e3ba6e68c32..f7512b4e923e 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -482,7 +482,7 @@ static void check_supported_cpu(void *_rc) cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx); if ((edx & P_STATE_TRANSITION_CAPABLE) != P_STATE_TRANSITION_CAPABLE) { - pr_info("Power state transitions not supported\n"); + pr_info_once("Power state transitions not supported\n"); return; } *rc = 0;