hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/powercap.h
....@@ -1,19 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * powercap.h: Data types and headers for sysfs power capping interface
34 * Copyright (c) 2013, Intel Corporation.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
13
- *
14
- * You should have received a copy of the GNU General Public License along with
15
- * this program; if not, write to the Free Software Foundation, Inc.
16
- *
175 */
186
197 #ifndef __POWERCAP_H__
....@@ -56,19 +44,18 @@
5644 };
5745
5846 /**
59
- * struct powercap_control_type- Defines a powercap control_type
60
- * @name: name of control_type
47
+ * struct powercap_control_type - Defines a powercap control_type
6148 * @dev: device for this control_type
6249 * @idr: idr to have unique id for its child
63
- * @root_node: Root holding power zones for this control_type
50
+ * @nr_zones: counter for number of zones of this type
6451 * @ops: Pointer to callback struct
65
- * @node_lock: mutex for control type
52
+ * @lock: mutex for control type
6653 * @allocated: This is possible that client owns the memory
6754 * used by this structure. In this case
6855 * this flag is set to false by framework to
6956 * prevent deallocation during release process.
7057 * Otherwise this flag is set to true.
71
- * @ctrl_inst: link to the control_type list
58
+ * @node: linked-list node
7259 *
7360 * Defines powercap control_type. This acts as a container for power
7461 * zones, which use same method to control power. E.g. RAPL, RAPL-PCI etc.
....@@ -141,7 +128,7 @@
141128 * this flag is set to false by framework to
142129 * prevent deallocation during release process.
143130 * Otherwise this flag is set to true.
144
- * @constraint_ptr: List of constraints for this zone.
131
+ * @constraints: List of constraints for this zone.
145132 *
146133 * This defines a power zone instance. The fields of this structure are
147134 * private, and should not be used by client drivers.