]> www.infradead.org Git - users/dwmw2/linux.git/commit
cpufreq / intel_pstate: remove idle time and duration from sample and calculations
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Tue, 7 May 2013 15:20:25 +0000 (08:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 18:38:42 +0000 (11:38 -0700)
commit5aacc8bcf0b23e20cbb205ac6fdc3ce797e1cae2
tree28970329151a4f377e6c7f22b03939d5f2d9c8b9
parent60b19b611510f4d55787e5143ba085baab106e49
cpufreq / intel_pstate: remove idle time and duration from sample and calculations

commit 1abc4b20b85b42e8573957e54b193385cf48b0d6 upstream.

Idle time is taken into account in the APERF/MPERF ratio calculation
there is no reason for the driver to track it seperately.  This
reduces the work in the driver and makes the code more readable.

Removal of the tracking of sample duration removes the possibility of
the divide by zero exception when the duration is sub 1us

References: https://bugzilla.kernel.org/show_bug.cgi?id=56691
Reported-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpufreq/intel_pstate.c