#include <linux/suspend.h>
#include <linux/syscore_ops.h>
#include <linux/tick.h>
+#ifdef CONFIG_SMP
#include <linux/sched.h>
+#endif
#include <trace/events/power.h>
static LIST_HEAD(cpufreq_policy_list);
void cpufreq_freq_transition_begin(struct cpufreq_policy *policy,
struct cpufreq_freqs *freqs)
{
+#ifdef CONFIG_SMP
int cpu;
+#endif
/*
* Catch double invocations of _begin() which lead to self-deadlock.
spin_unlock(&policy->transition_lock);
scale_freq_capacity(policy, freqs);
+#ifdef CONFIG_SMP
for_each_cpu(cpu, policy->cpus)
trace_cpu_capacity(capacity_curr_of(cpu), cpu);
+#endif
cpufreq_notify_transition(policy, freqs, CPUFREQ_PRECHANGE);
}