cpufreq: Remove unused flag CPUFREQ_PM_NO_WARN
This flag is set by one of the drivers but it isn't used in the code otherwise. Remove the unused flag and update the driver. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
5ae4a4b45d
commit
2f0531869f
@ -439,8 +439,7 @@ static struct cpufreq_driver pmac_cpufreq_driver = {
|
|||||||
.init = pmac_cpufreq_cpu_init,
|
.init = pmac_cpufreq_cpu_init,
|
||||||
.suspend = pmac_cpufreq_suspend,
|
.suspend = pmac_cpufreq_suspend,
|
||||||
.resume = pmac_cpufreq_resume,
|
.resume = pmac_cpufreq_resume,
|
||||||
.flags = CPUFREQ_PM_NO_WARN |
|
.flags = CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING,
|
||||||
CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING,
|
|
||||||
.attr = cpufreq_generic_attr,
|
.attr = cpufreq_generic_attr,
|
||||||
.name = "powermac",
|
.name = "powermac",
|
||||||
};
|
};
|
||||||
|
@ -398,8 +398,11 @@ struct cpufreq_driver {
|
|||||||
/* loops_per_jiffy or other kernel "constants" aren't affected by frequency transitions */
|
/* loops_per_jiffy or other kernel "constants" aren't affected by frequency transitions */
|
||||||
#define CPUFREQ_CONST_LOOPS BIT(1)
|
#define CPUFREQ_CONST_LOOPS BIT(1)
|
||||||
|
|
||||||
/* don't warn on suspend/resume speed mismatches */
|
/*
|
||||||
#define CPUFREQ_PM_NO_WARN BIT(2)
|
* Set by drivers that want the core to automatically register the cpufreq
|
||||||
|
* driver as a thermal cooling device.
|
||||||
|
*/
|
||||||
|
#define CPUFREQ_IS_COOLING_DEV BIT(2)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This should be set by platforms having multiple clock-domains, i.e.
|
* This should be set by platforms having multiple clock-domains, i.e.
|
||||||
@ -431,12 +434,6 @@ struct cpufreq_driver {
|
|||||||
*/
|
*/
|
||||||
#define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING BIT(6)
|
#define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING BIT(6)
|
||||||
|
|
||||||
/*
|
|
||||||
* Set by drivers that want the core to automatically register the cpufreq
|
|
||||||
* driver as a thermal cooling device.
|
|
||||||
*/
|
|
||||||
#define CPUFREQ_IS_COOLING_DEV BIT(7)
|
|
||||||
|
|
||||||
int cpufreq_register_driver(struct cpufreq_driver *driver_data);
|
int cpufreq_register_driver(struct cpufreq_driver *driver_data);
|
||||||
int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);
|
int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user