.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * gov_bang_bang.c - A simple thermal throttling governor using hysteresis |
---|
3 | 4 | * |
---|
4 | | - * Copyright (C) 2014 Peter Feuerer <peter@piie.net> |
---|
| 5 | + * Copyright (C) 2014 Peter Kaestle <peter@piie.net> |
---|
5 | 6 | * |
---|
6 | 7 | * Based on step_wise.c with following Copyrights: |
---|
7 | 8 | * Copyright (C) 2012 Intel Corp |
---|
8 | 9 | * Copyright (C) 2012 Durgadoss R <durgadoss.r@intel.com> |
---|
9 | | - * |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License as published by |
---|
13 | | - * the Free Software Foundation, version 2. |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, |
---|
16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
---|
18 | | - * the GNU General Public License for more details. |
---|
19 | | - * |
---|
20 | 10 | */ |
---|
21 | 11 | |
---|
22 | 12 | #include <linux/thermal.h> |
---|
.. | .. |
---|
81 | 71 | |
---|
82 | 72 | /** |
---|
83 | 73 | * bang_bang_control - controls devices associated with the given zone |
---|
84 | | - * @tz - thermal_zone_device |
---|
85 | | - * @trip - the trip point |
---|
| 74 | + * @tz: thermal_zone_device |
---|
| 75 | + * @trip: the trip point |
---|
86 | 76 | * |
---|
87 | 77 | * Regulation Logic: a two point regulation, deliver cooling state depending |
---|
88 | 78 | * on the previous state shown in this diagram: |
---|
.. | .. |
---|
126 | 116 | .name = "bang_bang", |
---|
127 | 117 | .throttle = bang_bang_control, |
---|
128 | 118 | }; |
---|
129 | | - |
---|
130 | | -int thermal_gov_bang_bang_register(void) |
---|
131 | | -{ |
---|
132 | | - return thermal_register_governor(&thermal_gov_bang_bang); |
---|
133 | | -} |
---|
134 | | - |
---|
135 | | -void thermal_gov_bang_bang_unregister(void) |
---|
136 | | -{ |
---|
137 | | - thermal_unregister_governor(&thermal_gov_bang_bang); |
---|
138 | | -} |
---|
| 119 | +THERMAL_GOVERNOR_DECLARE(thermal_gov_bang_bang); |
---|