diff options
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cppc_cpufreq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 8f7b21a4d537..8300a9fcb80c 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/cpu.h> | 20 | #include <linux/cpu.h> |
21 | #include <linux/cpufreq.h> | 21 | #include <linux/cpufreq.h> |
22 | #include <linux/dmi.h> | 22 | #include <linux/dmi.h> |
23 | #include <linux/time.h> | ||
23 | #include <linux/vmalloc.h> | 24 | #include <linux/vmalloc.h> |
24 | 25 | ||
25 | #include <asm/unaligned.h> | 26 | #include <asm/unaligned.h> |
@@ -162,6 +163,8 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
162 | policy->cpuinfo.max_freq = cppc_dmi_max_khz; | 163 | policy->cpuinfo.max_freq = cppc_dmi_max_khz; |
163 | 164 | ||
164 | policy->cpuinfo.transition_latency = cppc_get_transition_latency(cpu_num); | 165 | policy->cpuinfo.transition_latency = cppc_get_transition_latency(cpu_num); |
166 | policy->transition_delay_us = cppc_get_transition_latency(cpu_num) / | ||
167 | NSEC_PER_USEC; | ||
165 | policy->shared_type = cpu->shared_type; | 168 | policy->shared_type = cpu->shared_type; |
166 | 169 | ||
167 | if (policy->shared_type == CPUFREQ_SHARED_TYPE_ANY) | 170 | if (policy->shared_type == CPUFREQ_SHARED_TYPE_ANY) |