Skip to content
Commit 2fa00769 authored by xiongxin's avatar xiongxin Committed by Rafael J. Wysocki
Browse files

powercap: intel_rapl: Optimize rp->domains memory allocation



In the memory allocation of rp->domains in rapl_detect_domains(), there
is an additional memory of struct rapl_domain allocated, optimize the
code here to save sizeof(struct rapl_domain) bytes of memory.

Test in Intel NUC (i5-1135G7).

Signed-off-by: default avatarxiongxin <xiongxin@kylinos.cn>
Tested-by: default avatarxiongxin <xiongxin@kylinos.cn>
Reviewed-by: default avatarSrinivas <Pandruvada&lt;srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 3e767d68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment