Skip to content

Commit d64e690

Browse files
committed
Merge branch 'powercap'
* powercap: powercap: make documentation reflect code powercap/intel_rapl: add support for AlderLake powercap/intel_rapl: add support for RocketLake powercap/intel_rapl: add support for TigerLake Desktop
2 parents 95035ea + cc88b78 commit d64e690

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

drivers/powercap/intel_rapl_common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,9 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
10351035
X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE_L, &rapl_defaults_core),
10361036
X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, &rapl_defaults_core),
10371037
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, &rapl_defaults_core),
1038+
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE, &rapl_defaults_core),
1039+
X86_MATCH_INTEL_FAM6_MODEL(ROCKETLAKE, &rapl_defaults_core),
1040+
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, &rapl_defaults_core),
10381041
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &rapl_defaults_spr_server),
10391042

10401043
X86_MATCH_INTEL_FAM6_MODEL(ATOM_SILVERMONT, &rapl_defaults_byt),

include/linux/powercap.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,18 @@ struct powercap_control_type_ops {
4444
};
4545

4646
/**
47-
* struct powercap_control_type- Defines a powercap control_type
48-
* @name: name of control_type
47+
* struct powercap_control_type - Defines a powercap control_type
4948
* @dev: device for this control_type
5049
* @idr: idr to have unique id for its child
51-
* @root_node: Root holding power zones for this control_type
50+
* @nr_zones: counter for number of zones of this type
5251
* @ops: Pointer to callback struct
53-
* @node_lock: mutex for control type
52+
* @lock: mutex for control type
5453
* @allocated: This is possible that client owns the memory
5554
* used by this structure. In this case
5655
* this flag is set to false by framework to
5756
* prevent deallocation during release process.
5857
* Otherwise this flag is set to true.
59-
* @ctrl_inst: link to the control_type list
58+
* @node: linked-list node
6059
*
6160
* Defines powercap control_type. This acts as a container for power
6261
* zones, which use same method to control power. E.g. RAPL, RAPL-PCI etc.
@@ -129,7 +128,7 @@ struct powercap_zone_ops {
129128
* this flag is set to false by framework to
130129
* prevent deallocation during release process.
131130
* Otherwise this flag is set to true.
132-
* @constraint_ptr: List of constraints for this zone.
131+
* @constraints: List of constraints for this zone.
133132
*
134133
* This defines a power zone instance. The fields of this structure are
135134
* private, and should not be used by client drivers.

0 commit comments

Comments
 (0)