diff options
author | Zhang Rui <rui.zhang@intel.com> | 2023-04-19 10:44:12 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-05-24 18:46:19 +0200 |
commit | a38f300bb23c896d2d132a4502086d4bfec2a25e (patch) | |
tree | efd3d24e5b0dc034565565cbc9fe4e47a6691d48 /mm/vmalloc.c | |
parent | 045610c383bd6b740bb7e7c780d6f7729249e60d (diff) | |
download | lwn-a38f300bb23c896d2d132a4502086d4bfec2a25e.tar.gz lwn-a38f300bb23c896d2d132a4502086d4bfec2a25e.zip |
powercap: intel_rapl: Use bitmap for Power Limits
Currently, a RAPL package is registered with the number of Power Limits
supported in each RAPL domain. But this doesn't tell which Power Limits
are available. Using the number of Power Limits supported to guess the
availability of each Power Limit is fragile.
Use bitmap to represent the availability of each Power Limit.
Note that PL1 is mandatory thus it does not need to be set explicitly by
the RAPL Interface drivers.
No functional change intended.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Wang Wendy <wendy.wang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions