Bad computation of cpu loads when shared type all

This patch fixes the bad loads in interactive governor when
in SHARED_TYPE_ALL. Those bad loads causes  higher pstates
to be selected and increase  energy used.

Also provides fix the ftrace log that could log a bad pstate
and fix the ftrace log so that the setspeed is trace only when
really speed is changed.

Acknowledgement: Stephane Gasparini <stephane.gasparini@intel.com>
original author of patch.

Change-Id: Ie7f711ff453ba590e3d7ff8592216f358a2145ab
Original-Commit-ID: Ifadffa5a7a0a9b778d4a9b6d5c3c5461504c4fb1
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-5644
Signed-off-by: Ananth Krishna <ananth.krishna.r@intel.com>
1 file changed