hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/drivers/devfreq/governor_userspace.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/devfreq/governor_userspace.c
34 *
45 * Copyright (C) 2011 Samsung Electronics
56 * 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.
107 */
118
129 #include <linux/slab.h>
....@@ -122,11 +119,9 @@
122119 switch (event) {
123120 case DEVFREQ_GOV_START:
124121 ret = userspace_init(devfreq);
125
- devfreq->last_status.update = true;
126122 break;
127123 case DEVFREQ_GOV_STOP:
128124 userspace_exit(devfreq);
129
- devfreq->last_status.update = false;
130125 break;
131126 default:
132127 break;
....@@ -136,7 +131,7 @@
136131 }
137132
138133 static struct devfreq_governor devfreq_userspace = {
139
- .name = "userspace",
134
+ .name = DEVFREQ_GOV_USERSPACE,
140135 .get_target_freq = devfreq_userspace_func,
141136 .event_handler = devfreq_userspace_handler,
142137 };