diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-04-28 17:14:00 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-04-28 17:14:00 -0400 |
| commit | 0807ee0f525470482ecb002c45abcceed37e24e5 (patch) | |
| tree | 171bac082f8053b6b6030d7669013049150a7816 /include | |
| parent | 5a7ad1146caa895ad718a534399e38bd2ba721b7 (diff) | |
| parent | 2addac72afb304fa5aa57dbdd12659a8fd52d105 (diff) | |
Merge branch 'pm-cpufreq'
* pm-cpufreq: (37 commits)
cpufreq: Add Tegra186 cpufreq driver
cpufreq: imx6q: Fix error handling code
cpufreq: imx6q: Set max suspend_freq to avoid changes during suspend
cpufreq: imx6q: Fix handling EPROBE_DEFER from regulator
cpufreq: schedutil: Use policy-dependent transition delays
cpufreq: schedutil: Reduce frequencies slower
cpufreq: intel_pstate: Add support for Gemini Lake
cpufreq: intel_pstate: Eliminate intel_pstate_get_min_max()
cpufreq: intel_pstate: Do not walk policy->cpus
cpufreq: intel_pstate: Introduce pid_in_use()
cpufreq: intel_pstate: Drop struct cpu_defaults
cpufreq: intel_pstate: Move cpu_defaults definitions
cpufreq: intel_pstate: Add update_util callback to pstate_funcs
cpufreq: intel_pstate: Use different utilization update callbacks
cpufreq: intel_pstate: Modify check in intel_pstate_update_status()
cpufreq: intel_pstate: Drop driver_registered variable
cpufreq: intel_pstate: Skip unnecessary PID resets on init
cpufreq: intel_pstate: Set HWP sampling interval once
cpufreq: intel_pstate: Clean up intel_pstate_busy_pid_reset()
cpufreq: intel_pstate: Fold intel_pstate_reset_all_pid() into the caller
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cpufreq.h | 7 | ||||
| -rw-r--r-- | include/linux/tick.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 87165f06a307..a5ce0bbeadb5 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
| @@ -120,6 +120,13 @@ struct cpufreq_policy { | |||
| 120 | bool fast_switch_possible; | 120 | bool fast_switch_possible; |
| 121 | bool fast_switch_enabled; | 121 | bool fast_switch_enabled; |
| 122 | 122 | ||
| 123 | /* | ||
| 124 | * Preferred average time interval between consecutive invocations of | ||
| 125 | * the driver to set the frequency for this policy. To be set by the | ||
| 126 | * scaling driver (0, which is the default, means no preference). | ||
| 127 | */ | ||
| 128 | unsigned int transition_delay_us; | ||
| 129 | |||
| 123 | /* Cached frequency lookup from cpufreq_driver_resolve_freq. */ | 130 | /* Cached frequency lookup from cpufreq_driver_resolve_freq. */ |
| 124 | unsigned int cached_target_freq; | 131 | unsigned int cached_target_freq; |
| 125 | int cached_resolved_idx; | 132 | int cached_resolved_idx; |
diff --git a/include/linux/tick.h b/include/linux/tick.h index a04fea19676f..fe01e68bf520 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
| @@ -117,6 +117,7 @@ extern void tick_nohz_idle_enter(void); | |||
| 117 | extern void tick_nohz_idle_exit(void); | 117 | extern void tick_nohz_idle_exit(void); |
| 118 | extern void tick_nohz_irq_exit(void); | 118 | extern void tick_nohz_irq_exit(void); |
| 119 | extern ktime_t tick_nohz_get_sleep_length(void); | 119 | extern ktime_t tick_nohz_get_sleep_length(void); |
| 120 | extern unsigned long tick_nohz_get_idle_calls(void); | ||
| 120 | extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); | 121 | extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); |
| 121 | extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time); | 122 | extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time); |
| 122 | #else /* !CONFIG_NO_HZ_COMMON */ | 123 | #else /* !CONFIG_NO_HZ_COMMON */ |
