Commit 9a74bfd
committed
cpufreq: Use locking guard and __free() in cpufreq_update_policy()
Instead of using cpufreq_cpu_acquire() and cpufreq_cpu_release() in
cpufreq_update_policy(), which is the last user of these functions,
make it use __free() for policy reference counting cleanup and the
"write" locking guard for policy locking.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://patch.msgid.link/22654186.EfDdHjke4D@rjwysocki.net1 parent 973207a commit 9a74bfd
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2780 | 2780 | | |
2781 | 2781 | | |
2782 | 2782 | | |
2783 | | - | |
| 2783 | + | |
2784 | 2784 | | |
| 2785 | + | |
2785 | 2786 | | |
2786 | 2787 | | |
2787 | 2788 | | |
| 2789 | + | |
| 2790 | + | |
2788 | 2791 | | |
2789 | 2792 | | |
2790 | 2793 | | |
2791 | 2794 | | |
2792 | 2795 | | |
2793 | 2796 | | |
2794 | | - | |
| 2797 | + | |
2795 | 2798 | | |
2796 | 2799 | | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | 2800 | | |
2801 | 2801 | | |
2802 | 2802 | | |
| |||
0 commit comments