|
@@ -2440,9 +2440,6 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data)
|
|
|
|
|
|
pr_debug("trying to register driver %s\n", driver_data->name);
|
|
|
|
|
|
- if (driver_data->setpolicy)
|
|
|
- driver_data->flags |= CPUFREQ_CONST_LOOPS;
|
|
|
-
|
|
|
write_lock_irqsave(&cpufreq_driver_lock, flags);
|
|
|
if (cpufreq_driver) {
|
|
|
write_unlock_irqrestore(&cpufreq_driver_lock, flags);
|
|
@@ -2451,6 +2448,9 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data)
|
|
|
cpufreq_driver = driver_data;
|
|
|
write_unlock_irqrestore(&cpufreq_driver_lock, flags);
|
|
|
|
|
|
+ if (driver_data->setpolicy)
|
|
|
+ driver_data->flags |= CPUFREQ_CONST_LOOPS;
|
|
|
+
|
|
|
if (cpufreq_boost_supported()) {
|
|
|
/*
|
|
|
* Check if driver provides function to enable boost -
|