powercap/dtpm_cpu: Reset per_cpu variable in the release function
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 30 Jan 2022 21:02:04 +0000 (22:02 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 23 Feb 2022 18:45:22 +0000 (19:45 +0100)
commit0aea2e4ec2a2bfa2d7e8820e37ba5b5ce04f20a5
tree021916ca8ba98f9473a9b19f9e876d97a7d42e79
parent7b75bbdf5bedebed387aac6ad8411ed1cf3db5d0
powercap/dtpm_cpu: Reset per_cpu variable in the release function

The release function does not reset the per cpu variable when it is
called. That will prevent creation again as the variable will be
already from the previous creation.

Fix it by resetting them.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20220130210210.549877-2-daniel.lezcano@linaro.org
drivers/powercap/dtpm_cpu.c