Home | History | Annotate | Download | only in power

Lines Matching refs:dragon

99     struct dragon_power_module *dragon =
102 dragon->gpu_qos_manager = new TimedQosManager("GPU",
105 dragon->gpu_qos_manager->run("GpuTimedQosManager", PRIORITY_FOREGROUND);
165 static int boostpulse_open(struct dragon_power_module *dragon)
170 pthread_mutex_lock(&dragon->boost_pulse_lock);
172 if (dragon->boostpulse_fd < 0) {
173 dragon->boostpulse_fd = open(BOOSTPULSE_PATH, O_WRONLY);
175 if (dragon->boostpulse_fd < 0) {
176 if (!dragon->boostpulse_warned) {
179 dragon->boostpulse_warned = 1;
184 pthread_mutex_unlock(&dragon->boost_pulse_lock);
185 return dragon->boostpulse_fd;
191 struct dragon_power_module *dragon =
198 if (boostpulse_open(dragon) >= 0) {
199 len = write(dragon->boostpulse_fd, "1", 1);
206 if (dragon->gpu_qos_manager != NULL)
207 dragon->gpu_qos_manager->requestTimedQos(ms2ns(GPU_BOOST_DURATION_MS));
215 pthread_mutex_lock(&dragon->low_power_lock);
224 pthread_mutex_unlock(&dragon->low_power_lock);
250 name: "Dragon Power HAL",