I have discussed that with Rafael and we have similar view.
The EM debugfs is not the right interface for this purpose.
A better design and mechanism for your purpose would be the netlink
notification. It is present in the kernel in thermal framework
and e.g. is used by Intel HFI
- drivers/thermal/intel/intel_hfi.c
- drivers/thermal/thermal_netlink.c
It's able to send to the user space the information from FW about
the CPUs' efficiency changes, which is similar to this EM modification.
In addition, after this patch
https://lore.kernel.org/linux-pm/3637203.iIbC2pHGDl@xxxxxxxxxxxxx/
which is about to get into linux-next, em_dev_update_perf_domain()
will not be the only place where the Energy Model can be updated.
Thanks!
_______________________________________________
Kernel-dev mailing list -- kernel-dev@xxxxxxxxxx
To unsubscribe send an email to kernel-dev-leave@xxxxxxxxxx