cpufreq: Clear real_cpus mask from remove_cpu_dev_symlink()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 11 May 2022 09:06:24 +0000 (14:36 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 May 2022 17:23:10 +0000 (19:23 +0200)
commit5c84c1b84bd80a735b2c7804e7be86d043fca595
tree548baf6a97a571e41b6dc04e0b52212b3ec8ec13
parentbbd67f1b5a9449b090560ca5288aef0cfe623275
cpufreq: Clear real_cpus mask from remove_cpu_dev_symlink()

add_cpu_dev_symlink() is responsible for setting the CPUs in the
real_cpus mask, the reverse of which should be done from
remove_cpu_dev_symlink() to make it look clean and avoid any breakage
later on.

Move the call to clear the mask to remove_cpu_dev_symlink().

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