intel_pstate: Force setting target pstate when required
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: Doug Smythies <cffe526240252daa897043091c626836b786f73e@telus.net>
Reported-by: Marien Zwart <1668600513f8da97e558033b9c35eb32f7c4d01d@gmail.com>
Reported-by: Alex Lochmann <fc47fa81ba910dc3437c874d706b84761f391605@tu-dortmund.de>
Reported-by: Piotr Ko?aczkowski <43b54a04fac7e323e7c38332b5cdf6c96b4d442d@gmail.com>
Reported-by: Clemens Eisserer <0cc35c01c79e6e9b6413a12560623f129e6924af@gmail.com>
Tested-by: Marien Zwart <1668600513f8da97e558033b9c35eb32f7c4d01d@gmail.com>
Tested-by: Doug Smythies <cffe526240252daa897043091c626836b786f73e@telus.net>
[ rjw: Dropped pointless symbol definitions, rebased ]
Signed-off-by: Rafael J. Wysocki <27ffc44a8ec6a212fba98cfc3246c6ce8ab131e0@intel.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs