tools/lib/thermal: Fix thermal_sampling_exit()
authorVincent Guittot <vincent.guittot@linaro.org>
Thu, 2 Feb 2023 10:28:12 +0000 (11:28 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 15 Feb 2023 16:27:41 +0000 (17:27 +0100)
commita29cbd76aaf63f5493e962aa2fbaadcdc4615143
tree685ef1db2d17f625f4fa40df25d64a640675f3ba
parentbadf1f90502d3fc627a18880dfafd8c636699baf
tools/lib/thermal: Fix thermal_sampling_exit()

thermal_sampling_init() suscribes to THERMAL_GENL_SAMPLING_GROUP_NAME group
so thermal_sampling_exit() should unsubscribe from the same group.

Fixes: 47c4b0de080a ("tools/lib/thermal: Add a thermal library")
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20230202102812.453357-1-vincent.guittot@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/lib/thermal/sampling.c