cpufreq: interactive: reduce chance of zero time delta on load eval
authorTodd Poynor <toddpoynor@google.com>
Fri, 5 Apr 2013 20:25:21 +0000 (13:25 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:27 +0000 (14:16 -0700)
commitd06bc7e5b3a3968721e0a34ce4a515cf5fa873e3
treec51823ef3289c394202faeb0cf2a16d026aa00d6
parentfb07c42ed81ae73f08893440cf19a0967c85d1b8
cpufreq: interactive: reduce chance of zero time delta on load eval

Reschedule load sampling timer after timestamp of sample start taken,
hold spinlock across entire sequence to avoid preemption.  Avoid the
WARN for zero time delta in the load sampling timer function.

Change-Id: Idc10a756f09141decb6df92669521a1ebf0dbc10
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/cpufreq/cpufreq_interactive.c