Skip to content

Commit 8c53977

Browse files
icklerafaeljw
authored andcommitted
cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once
Make a note of the first time we discover the turbo mode has been disabled by the BIOS, as otherwise we complain every time we try to update the mode. Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 6a8b55e commit 8c53977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ static ssize_t store_no_turbo(struct kobject *a, struct kobj_attribute *b,
10591059

10601060
update_turbo_state();
10611061
if (global.turbo_disabled) {
1062-
pr_warn("Turbo disabled by BIOS or unavailable on processor\n");
1062+
pr_notice_once("Turbo disabled by BIOS or unavailable on processor\n");
10631063
mutex_unlock(&intel_pstate_limits_lock);
10641064
mutex_unlock(&intel_pstate_driver_lock);
10651065
return -EPERM;

0 commit comments

Comments
 (0)