aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cpufreq.h1
-rw-r--r--include/linux/cpuidle.h4
-rw-r--r--include/linux/device.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 21e8d248d956..1fe49724da9e 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -962,6 +962,7 @@ extern struct freq_attr cpufreq_freq_attr_scaling_boost_freqs;
962extern struct freq_attr *cpufreq_generic_attr[]; 962extern struct freq_attr *cpufreq_generic_attr[];
963int cpufreq_table_validate_and_show(struct cpufreq_policy *policy, 963int cpufreq_table_validate_and_show(struct cpufreq_policy *policy,
964 struct cpufreq_frequency_table *table); 964 struct cpufreq_frequency_table *table);
965int cpufreq_table_validate_and_sort(struct cpufreq_policy *policy);
965 966
966unsigned int cpufreq_generic_get(unsigned int cpu); 967unsigned int cpufreq_generic_get(unsigned int cpu);
967int cpufreq_generic_init(struct cpufreq_policy *policy, 968int cpufreq_generic_init(struct cpufreq_policy *policy,
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index 0b3fc229086c..a806e94c482f 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -33,6 +33,10 @@ struct cpuidle_state_usage {
33 unsigned long long disable; 33 unsigned long long disable;
34 unsigned long long usage; 34 unsigned long long usage;
35 unsigned long long time; /* in US */ 35 unsigned long long time; /* in US */
36#ifdef CONFIG_SUSPEND
37 unsigned long long s2idle_usage;
38 unsigned long long s2idle_time; /* in US */
39#endif
36}; 40};
37 41
38struct cpuidle_state { 42struct cpuidle_state {
diff --git a/include/linux/device.h b/include/linux/device.h
index b093405ed525..abf952c82c6d 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -769,6 +769,7 @@ enum device_link_state {
769 * @status: The state of the link (with respect to the presence of drivers). 769 * @status: The state of the link (with respect to the presence of drivers).
770 * @flags: Link flags. 770 * @flags: Link flags.
771 * @rpm_active: Whether or not the consumer device is runtime-PM-active. 771 * @rpm_active: Whether or not the consumer device is runtime-PM-active.
772 * @kref: Count repeated addition of the same link.
772 * @rcu_head: An RCU head to use for deferred execution of SRCU callbacks. 773 * @rcu_head: An RCU head to use for deferred execution of SRCU callbacks.
773 */ 774 */
774struct device_link { 775struct device_link {
@@ -779,6 +780,7 @@ struct device_link {
779 enum device_link_state status; 780 enum device_link_state status;
780 u32 flags; 781 u32 flags;
781 bool rpm_active; 782 bool rpm_active;
783 struct kref kref;
782#ifdef CONFIG_SRCU 784#ifdef CONFIG_SRCU
783 struct rcu_head rcu_head; 785 struct rcu_head rcu_head;
784#endif 786#endif