mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
Merge branch 'for-lsk' of git://git.linaro.org/arm/big.LITTLE/mp into lsk-v3.10-big.LITTLE
This commit is contained in:
commit
ee8cfc6830
|
|
@ -3560,10 +3560,12 @@ static enum hrtimer_restart hmp_cpu_keepalive_notify(struct hrtimer *hrtimer)
|
|||
* If there are any, set ns_delay to
|
||||
* ('target_residency of state with shortest too-big latency' - 1) * 1000.
|
||||
*/
|
||||
static void hmp_keepalive_delay(unsigned int *ns_delay)
|
||||
static void hmp_keepalive_delay(int cpu, unsigned int *ns_delay)
|
||||
{
|
||||
struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu);
|
||||
struct cpuidle_driver *drv;
|
||||
drv = cpuidle_driver_ref();
|
||||
|
||||
drv = cpuidle_get_cpu_driver(dev);
|
||||
if (drv) {
|
||||
unsigned int us_delay = UINT_MAX;
|
||||
unsigned int us_max_delay = *ns_delay / 1000;
|
||||
|
|
@ -3582,7 +3584,6 @@ static void hmp_keepalive_delay(unsigned int *ns_delay)
|
|||
else
|
||||
*ns_delay = 1000 * (us_delay - 1);
|
||||
}
|
||||
cpuidle_driver_unref();
|
||||
}
|
||||
|
||||
static void hmp_cpu_keepalive_trigger(void)
|
||||
|
|
@ -3596,7 +3597,7 @@ static void hmp_cpu_keepalive_trigger(void)
|
|||
CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED);
|
||||
keepalive->timer.function = hmp_cpu_keepalive_notify;
|
||||
|
||||
hmp_keepalive_delay(&ns_delay);
|
||||
hmp_keepalive_delay(cpu, &ns_delay);
|
||||
keepalive->delay = ns_to_ktime(ns_delay);
|
||||
keepalive->init = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user