Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5af08b67 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Modify code to avoid a wrong print msg"

parents 3edfe9ba 1a3e16ee
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -957,17 +957,20 @@ static void handle_sys_idle(enum command_response cmd, void *data)
	if (response) {
		core = get_vidc_core(response->device_id);
		dprintk(VIDC_DBG, "SYS_IDLE received for core %p\n", core);
		if (core && core->resources.dynamic_bw_update) {
		if (core) {
			if (core->resources.dynamic_bw_update) {
				struct timeval tv;
				mutex_lock(&core->lock);
				do_gettimeofday(&tv);
				core->idle_time.start_idle_time =
					(tv.tv_sec * 1000000 + (tv.tv_usec));
			dprintk(VIDC_DBG, "%s: start_idle_time %llu us\n",
				dprintk(VIDC_DBG,
					"%s: start_idle_time %llu us\n",
					__func__,
					core->idle_time.start_idle_time);
				core->idle_time.core_in_idle = true;
				mutex_unlock(&core->lock);
			}
		} else
			dprintk(VIDC_ERR, "Core is NULL when sys_idle rxed\n");
	}