intel_pstate: Improve initial busy calculation
authorDoug Smythies <dsmythies@telus.net>
Fri, 30 May 2014 17:10:57 +0000 (10:10 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Jun 2014 10:46:01 +0000 (12:46 +0200)
commitbf8102228a8bf053051f311e5486042fe0542894
tree67c29987588de6d24200039ac1574f8af9c6a301
parentc4ee841f602e5eef8eab673295c49c5b49d7732b
intel_pstate: Improve initial busy calculation

This change makes the busy calculation using 64 bit math which prevents
overflow for large values of aperf/mperf.

Cc: 3.14+ <stable@vger.kernel.org> # 3.14+
Signed-off-by: Doug Smythies <dsmythies@telus.net>
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