aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-05-12 02:52:12 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-14 20:38:18 -0400
commit9104bb26c740cd4b2c9ee927f3caabbde0414558 (patch)
tree5852c9111d6d152c5f12b01d08ffd6c6e26b902e /scripts/gdb/linux/utils.py
parent3914d37910af2cd0cc992ae546b8308e05759d2b (diff)
cpufreq: Don't traverse all active policies to find policy for a cpu
We reach here while adding policy for a CPU and enter into the 'if' block only if a policy already exists for the CPU. As cpufreq_cpu_data is set for all policy->related_cpus now, when the policy is first added, we can use that to find the CPU's policy instead of traversing the list of all active policies. Acked-by: Saravana Kannan <skannan@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions