Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6c1e4591 authored by Doug Smythies's avatar Doug Smythies Committed by Rafael J. Wysocki
Browse files

intel_pstate: Force setting target pstate when required



During initialization and exit it is possible that the target pstate
might not actually be set. Furthermore, the result can be that the
driver and the processor are out of synch and, under some conditions,
the driver might never send the processor the proper target pstate.

This patch adds a bypass or do_checks flag to the call to
intel_pstate_set_pstate. If bypass, then specifically bypass clamp
checks and the do not send if it is the same as last time check. If
do_checks, then, and as before, do the current policy clamp checks,
and do not do actual send if the new target is the same as the old.

Signed-off-by: default avatarDoug Smythies <dsmythies@telus.net>
Reported-by: default avatarMarien Zwart <marien.zwart@gmail.com>
Reported-by: default avatarAlex Lochmann <alexander.lochmann@tu-dortmund.de>
Reported-by: default avatarPiotr Ko?aczkowski <pkolaczk@gmail.com>
Reported-by: default avatarClemens Eisserer <linuxhippy@gmail.com>
Tested-by: default avatarMarien Zwart <marien.zwart@gmail.com>
Tested-by: default avatarDoug Smythies <dsmythies@telus.net>
[ rjw: Dropped pointless symbol definitions, rebased ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent f16255eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment