}
void
-_cpufreq_set_pstate(int min, int max, int turbo)
+_cpufreq_set_pstate(int min, int max)
{
char buf[4096];
int ret;
snprintf(buf, sizeof(buf),
- "%s %s %i %i %i", cpufreq_config->set_exe_path, "pstate", min, max, turbo);
+ "%s %s %i %i %i", cpufreq_config->set_exe_path, "pstate", min, max, cpufreq_config->status->pstate_turbo);
ret = system(buf);
if (ret != 0)
{
Instance *inst;
Eina_List *l;
int active;
+ static Eina_Bool init_set = EINA_FALSE;
if (cpufreq_config->menu_poll) return ECORE_CALLBACK_RENEW;
active = cpufreq_config->status->active;
edje_object_signal_emit(inst->o_cpu, "e,state,enabled", "e");
}
}
+ if (!init_set)
+ {
+ _cpufreq_set_pstate(cpufreq_config->pstate_min - 1,
+ cpufreq_config->pstate_max - 1);
+ init_set = 1;
+ }
return ECORE_CALLBACK_RENEW;
}
if (cpufreq_config->pstate_max < cpufreq_config->pstate_min)
cpufreq_config->pstate_max = cpufreq_config->pstate_min;
_cpufreq_set_pstate(cpufreq_config->pstate_min - 1,
- cpufreq_config->pstate_max - 1, 1);
+ cpufreq_config->pstate_max - 1);
e_config_save_queue();
}
if (cpufreq_config->pstate_min > cpufreq_config->pstate_max)
cpufreq_config->pstate_min = cpufreq_config->pstate_max;
_cpufreq_set_pstate(cpufreq_config->pstate_min - 1,
- cpufreq_config->pstate_max - 1, 1);
+ cpufreq_config->pstate_max - 1);
e_config_save_queue();
}
}
}
- _cpufreq_set_pstate(cpufreq_config->pstate_min - 1,
- cpufreq_config->pstate_max - 1, 1);
-
cpufreq_config->module = m;
e_gadcon_provider_register(&_gadcon_class);
E_Config_Dialog *e_int_config_cpufreq_module(Evas_Object *parent, const char *params);
void _cpufreq_poll_interval_update(void);
void _cpufreq_set_governor(const char *governor);
-void _cpufreq_set_pstate(int min, int max, int turbo);
+void _cpufreq_set_pstate(int min, int max);
extern Config *cpufreq_config;