hwmon: (amd_energy) Improve the accumulation logic
Factor out the common code in the accumulation functions for core and socket accumulation. While at it, handle the return value of the amd_create_sensor() function. Signed-off-by: NNaveen Krishna Chatradhi <nchatrad@amd.com> Link: https://lore.kernel.org/r/20200929105322.8919-4-nchatrad@amd.comSigned-off-by: NGuenter Roeck <linux@roeck-us.net>
Showing
想要评论请 注册 或 登录