| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | |
|---|
| 2 | 3 | /* |
|---|
| 3 | 4 | * linux/drivers/cpufreq/cpufreq_userspace.c |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (C) 2001 Russell King |
|---|
| 6 | 7 | * (C) 2002 - 2004 Dominik Brodowski <linux@brodo.de> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | | - * |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 128 | 124 | .owner = THIS_MODULE, |
|---|
| 129 | 125 | }; |
|---|
| 130 | 126 | |
|---|
| 131 | | -static int __init cpufreq_gov_userspace_init(void) |
|---|
| 132 | | -{ |
|---|
| 133 | | - return cpufreq_register_governor(&cpufreq_gov_userspace); |
|---|
| 134 | | -} |
|---|
| 135 | | - |
|---|
| 136 | | -static void __exit cpufreq_gov_userspace_exit(void) |
|---|
| 137 | | -{ |
|---|
| 138 | | - cpufreq_unregister_governor(&cpufreq_gov_userspace); |
|---|
| 139 | | -} |
|---|
| 140 | | - |
|---|
| 141 | 127 | MODULE_AUTHOR("Dominik Brodowski <linux@brodo.de>, " |
|---|
| 142 | 128 | "Russell King <rmk@arm.linux.org.uk>"); |
|---|
| 143 | 129 | MODULE_DESCRIPTION("CPUfreq policy governor 'userspace'"); |
|---|
| .. | .. |
|---|
| 148 | 134 | { |
|---|
| 149 | 135 | return &cpufreq_gov_userspace; |
|---|
| 150 | 136 | } |
|---|
| 151 | | - |
|---|
| 152 | | -fs_initcall(cpufreq_gov_userspace_init); |
|---|
| 153 | | -#else |
|---|
| 154 | | -module_init(cpufreq_gov_userspace_init); |
|---|
| 155 | 137 | #endif |
|---|
| 156 | | -module_exit(cpufreq_gov_userspace_exit); |
|---|
| 138 | + |
|---|
| 139 | +cpufreq_governor_init(cpufreq_gov_userspace); |
|---|
| 140 | +cpufreq_governor_exit(cpufreq_gov_userspace); |
|---|