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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 12 May 2013 12:04:16 +0000 (14:04 +0200)
commit1abc4b20b85b42e8573957e54b193385cf48b0d6
treefae8b7b36dd913c05ee2e2c7fadb4308f7b4295f
parent559f56c70fc90bd9da8c9c9c36d86c5e582ac5b3
cpufreq / intel_pstate: remove idle time and duration from sample and calculations

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>
Cc: 3.9+ <stable@vger.kernel.org>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c