.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/devfreq/governor_userspace.c |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2011 Samsung Electronics |
---|
5 | 6 | * MyungJoo Ham <myungjoo.ham@samsung.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #include <linux/slab.h> |
---|
.. | .. |
---|
122 | 119 | switch (event) { |
---|
123 | 120 | case DEVFREQ_GOV_START: |
---|
124 | 121 | ret = userspace_init(devfreq); |
---|
125 | | - devfreq->last_status.update = true; |
---|
126 | 122 | break; |
---|
127 | 123 | case DEVFREQ_GOV_STOP: |
---|
128 | 124 | userspace_exit(devfreq); |
---|
129 | | - devfreq->last_status.update = false; |
---|
130 | 125 | break; |
---|
131 | 126 | default: |
---|
132 | 127 | break; |
---|
.. | .. |
---|
136 | 131 | } |
---|
137 | 132 | |
---|
138 | 133 | static struct devfreq_governor devfreq_userspace = { |
---|
139 | | - .name = "userspace", |
---|
| 134 | + .name = DEVFREQ_GOV_USERSPACE, |
---|
140 | 135 | .get_target_freq = devfreq_userspace_func, |
---|
141 | 136 | .event_handler = devfreq_userspace_handler, |
---|
142 | 137 | }; |
---|