Skip to content

Commit 566e24e

Browse files
committed
Merge tag 'pm-5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fixes from Rafael Wysocki: "These fix three pieces of documentation and add new CPU IDs to the Intel RAPL power capping driver. Specifics: - Add CPU IDs of the TigerLake Desktop, RocketLake and AlderLake chips to the Intel RAPL power capping driver (Zhang Rui). - Add the missing energy model performance domain item to the struct device kerneldoc comment (Randy Dunlap). - Fix the struct powercap_control_type kerneldoc comment to match the actual definition of that structure and add missing item to the struct powercap_zone_ops kerneldoc comment (Amit Kucheria)" * tag 'pm-5.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: powercap: make documentation reflect code PM: <linux/device.h>: fix @em_pd kernel-doc warning powercap/intel_rapl: add support for AlderLake powercap/intel_rapl: add support for RocketLake powercap/intel_rapl: add support for TigerLake Desktop
2 parents 7b8731d + d64e690 commit 566e24e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-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/device.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ struct dev_links_info {
454454
* @pm_domain: Provide callbacks that are executed during system suspend,
455455
* hibernation, system resume and during runtime PM transitions
456456
* along with subsystem-level and driver-level callbacks.
457+
* @em_pd: device's energy model performance domain
457458
* @pins: For device pin management.
458459
* See Documentation/driver-api/pinctl.rst for details.
459460
* @msi_list: Hosts MSI descriptors

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)