.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/cpufreq/cpufreq_performance.c |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de> |
---|
5 | | - * |
---|
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 | | - * |
---|
11 | 6 | */ |
---|
12 | 7 | |
---|
13 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
25 | 20 | static struct cpufreq_governor cpufreq_gov_performance = { |
---|
26 | 21 | .name = "performance", |
---|
27 | 22 | .owner = THIS_MODULE, |
---|
| 23 | + .flags = CPUFREQ_GOV_STRICT_TARGET, |
---|
28 | 24 | .limits = cpufreq_gov_performance_limits, |
---|
29 | 25 | }; |
---|
30 | | - |
---|
31 | | -static int __init cpufreq_gov_performance_init(void) |
---|
32 | | -{ |
---|
33 | | - return cpufreq_register_governor(&cpufreq_gov_performance); |
---|
34 | | -} |
---|
35 | | - |
---|
36 | | -static void __exit cpufreq_gov_performance_exit(void) |
---|
37 | | -{ |
---|
38 | | - cpufreq_unregister_governor(&cpufreq_gov_performance); |
---|
39 | | -} |
---|
40 | 26 | |
---|
41 | 27 | #ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE |
---|
42 | 28 | struct cpufreq_governor *cpufreq_default_governor(void) |
---|
.. | .. |
---|
55 | 41 | MODULE_DESCRIPTION("CPUfreq policy governor 'performance'"); |
---|
56 | 42 | MODULE_LICENSE("GPL"); |
---|
57 | 43 | |
---|
58 | | -fs_initcall(cpufreq_gov_performance_init); |
---|
59 | | -module_exit(cpufreq_gov_performance_exit); |
---|
| 44 | +cpufreq_governor_init(cpufreq_gov_performance); |
---|
| 45 | +cpufreq_governor_exit(cpufreq_gov_performance); |
---|