|
@@ -12,7 +12,6 @@
|
|
|
|
|
|
#include <linux/kernel.h>
|
|
|
#include <linux/cpuidle.h>
|
|
|
-#include <linux/pm_qos.h>
|
|
|
#include <linux/time.h>
|
|
|
#include <linux/ktime.h>
|
|
|
#include <linux/hrtimer.h>
|
|
@@ -21,7 +20,6 @@
|
|
|
#include <linux/sched/loadavg.h>
|
|
|
#include <linux/sched/stat.h>
|
|
|
#include <linux/math64.h>
|
|
|
-#include <linux/cpu.h>
|
|
|
|
|
|
/*
|
|
|
* Please note when changing the tuning values:
|
|
@@ -286,15 +284,13 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
|
|
|
bool *stop_tick)
|
|
|
{
|
|
|
struct menu_device *data = this_cpu_ptr(&menu_devices);
|
|
|
- struct device *device = get_cpu_device(dev->cpu);
|
|
|
- int latency_req = pm_qos_request(PM_QOS_CPU_DMA_LATENCY);
|
|
|
+ int latency_req = cpuidle_governor_latency_req(dev->cpu);
|
|
|
int i;
|
|
|
int first_idx;
|
|
|
int idx;
|
|
|
unsigned int interactivity_req;
|
|
|
unsigned int expected_interval;
|
|
|
unsigned long nr_iowaiters, cpu_load;
|
|
|
- int resume_latency = dev_pm_qos_raw_read_value(device);
|
|
|
ktime_t delta_next;
|
|
|
|
|
|
if (data->needs_update) {
|
|
@@ -302,9 +298,6 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev,
|
|
|
data->needs_update = 0;
|
|
|
}
|
|
|
|
|
|
- if (resume_latency < latency_req)
|
|
|
- latency_req = resume_latency;
|
|
|
-
|
|
|
/* Special case when user has set very strict latency requirement */
|
|
|
if (unlikely(latency_req == 0)) {
|
|
|
*stop_tick = false;
|