From: Doug Smythies Date: Tue, 2 Jun 2015 04:12:34 +0000 (-0700) Subject: intel_pstate: Force setting target pstate when required X-Git-Tag: omap-for-v4.3/legacy-v2-signed~183^2~7^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1e45917dec5e7c99ba8125fd8cc50f6e482a21;p=pandora-kernel.git 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 Reported-by: Marien Zwart Reported-by: Alex Lochmann Reported-by: Piotr Ko?aczkowski Reported-by: Clemens Eisserer Tested-by: Marien Zwart Tested-by: Doug Smythies [ rjw: Dropped pointless symbol definitions, rebased ] Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed