summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-wsem.h
diff options
context:
space:
mode:
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>2023-12-28 13:02:48 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-12-28 21:56:40 +0300
commit04c3b03044034ce50886f2c0d1c595ff25f45085 (patch)
tree40e9431edb4cbcb59750b32374ca49f362234cab /lib/locking-selftest-wsem.h
parent5eb4f413ad60db7c4b11c4d331b04f2909c8ba14 (diff)
downloadlinux-04c3b03044034ce50886f2c0d1c595ff25f45085.tar.xz
thermal: netlink: Add thermal_group_has_listeners() helper
Add a helper function to check if there are listeners for thermal_gnl_family multicast groups. For now use it to avoid unnecessary allocations and sending thermal genl messages when there are no recipients. In the future, in conjunction with (not yet implemented) notification of change in the netlink socket group membership, this helper can be used to open/close hardware interfaces based on the presence of user space subscribers. Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions