intel_pstate: Improve initial busy calculation
authorDoug Smythies <dsmythies@telus.net>
Fri, 30 May 2014 17:10:57 +0000 (10:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jun 2014 18:54:13 +0000 (11:54 -0700)
commit9f3c8fdbb9786e46ffc6d2e261c9bf903e37fd4a
tree723a80aaa63561ea36a0aff7c8aef722b884743f
parentfb145ac9f30cf84d18a26b63e18c94849be54313
intel_pstate: Improve initial busy calculation

commit bf8102228a8bf053051f311e5486042fe0542894 upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpufreq/intel_pstate.c