| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * powercap.h: Data types and headers for sysfs power capping interface |
|---|
| 3 | 4 | * 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 | | - * |
|---|
| 17 | 5 | */ |
|---|
| 18 | 6 | |
|---|
| 19 | 7 | #ifndef __POWERCAP_H__ |
|---|
| .. | .. |
|---|
| 56 | 44 | }; |
|---|
| 57 | 45 | |
|---|
| 58 | 46 | /** |
|---|
| 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 |
|---|
| 61 | 48 | * @dev: device for this control_type |
|---|
| 62 | 49 | * @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 |
|---|
| 64 | 51 | * @ops: Pointer to callback struct |
|---|
| 65 | | - * @node_lock: mutex for control type |
|---|
| 52 | + * @lock: mutex for control type |
|---|
| 66 | 53 | * @allocated: This is possible that client owns the memory |
|---|
| 67 | 54 | * used by this structure. In this case |
|---|
| 68 | 55 | * this flag is set to false by framework to |
|---|
| 69 | 56 | * prevent deallocation during release process. |
|---|
| 70 | 57 | * Otherwise this flag is set to true. |
|---|
| 71 | | - * @ctrl_inst: link to the control_type list |
|---|
| 58 | + * @node: linked-list node |
|---|
| 72 | 59 | * |
|---|
| 73 | 60 | * Defines powercap control_type. This acts as a container for power |
|---|
| 74 | 61 | * zones, which use same method to control power. E.g. RAPL, RAPL-PCI etc. |
|---|
| .. | .. |
|---|
| 141 | 128 | * this flag is set to false by framework to |
|---|
| 142 | 129 | * prevent deallocation during release process. |
|---|
| 143 | 130 | * Otherwise this flag is set to true. |
|---|
| 144 | | - * @constraint_ptr: List of constraints for this zone. |
|---|
| 131 | + * @constraints: List of constraints for this zone. |
|---|
| 145 | 132 | * |
|---|
| 146 | 133 | * This defines a power zone instance. The fields of this structure are |
|---|
| 147 | 134 | * private, and should not be used by client drivers. |
|---|