cpufreq: governor: Check transition latecy at init time only
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 May 2016 23:00:28 +0000 (01:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 May 2016 12:34:16 +0000 (14:34 +0200)
commit9e8c0a899b2f89b8367d33668f6819892f0a00f2
tree56efaf9d3357f4ce768ce2acdcc978ad2fafdc20
parentd6ff44d647a9c63911983da9979961fde306b3aa
cpufreq: governor: Check transition latecy at init time only

It is not necessary to check the governor's max_transition_latency
attribute every time cpufreq_governor() runs, so check it only if
the event argument is CPUFREQ_GOV_POLICY_INIT.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c