]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PM: EM: Implement em_nl_get_pds_doit()
authorChangwoo Min <changwoo@igalia.com>
Mon, 20 Oct 2025 22:09:10 +0000 (07:09 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Oct 2025 19:44:37 +0000 (21:44 +0200)
commitd8eef0453132dc95354e4c7ae839815e679179c6
treea69c347057bac19f324cee0ad949b41c877e89ad
parent7928339cfe7d80f35bca905f0a2358271a4e6aa7
PM: EM: Implement em_nl_get_pds_doit()

When a userspace requests EM_CMD_GET_PDS, the kernel responds with
information on all performance domains. The message format of the
response is as follows:

EM_A_PDS_PD (NLA_NESTED)*
    EM_A_PD_PD_ID (NLA_U32)
    EM_A_PD_FLAGS (NLA_U64)
    EM_A_PD_CPUS (NLA_STRING)

where EM_A_PDS_PD can be repeated as many times as there are performance
domains, and EM_A_PD_CPUS is a hexadecimal string representing a CPU
bitmask.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20251020220914.320832-7-changwoo@igalia.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/em_netlink.c