aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorZhang Rui <[email protected]>2023-04-19 10:44:10 +0800
committerRafael J. Wysocki <[email protected]>2023-05-24 18:46:19 +0200
commit11edbe5c66d624e2e1eec8929d3668d76a574c3b (patch)
treecc4f20251c6136364bcf5dca31f731b4da52040a /lib/crypto/mpi/mpi-sub-ui.c
parentcb532e728ee2880be53264752e74945fd2d917ac (diff)
powercap: intel_rapl: Use index to initialize primitive information
Currently, the RAPL primitive information array is required to be initialized in the order of enum rapl_primitives. This can break easily, especially when different RAPL Interfaces may support different sets of primitives. Convert the code to initialize the primitive information using array index explicitly. No functional change. Signed-off-by: Zhang Rui <[email protected]> Tested-by: Wang Wendy <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions