]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: governor: initialize/destroy timer_mutex with 'shared'
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Dec 2015 04:07:52 +0000 (09:37 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Dec 2015 01:20:23 +0000 (02:20 +0100)
commitb43b6f51558a0a949a7839cd4b28a6b5db37eb16
tree32830a50e58f9e7cdba5e2e3a6662722fb53fd42
parent63bd17c5bdd90a7608016df2563bcd8dc5d3ebdc
cpufreq: governor: initialize/destroy timer_mutex with 'shared'

timer_mutex is required to be initialized only while memory for 'shared'
is allocated and in a similar way it is required to be destroyed only
when memory for 'shared' is freed.

There is no need to do the same every time we start/stop the governor.
Move code to initialize/destroy timer_mutex to the relevant places.

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