MALI_PROFILING_EVENT_REASON_START_STOP_HW_VIRTUAL,
mali_pp_job_get_pid(job), mali_pp_job_get_tid(job), 0, 0, 0);
#if defined(CONFIG_GPU_TRACEPOINTS) && defined(CONFIG_TRACEPOINTS)
- trace_gpu_sched_switch(
- mali_pp_core_description(child->pp_core),
- sched_clock(), mali_pp_job_get_tid(job),
- 0, mali_pp_job_get_id(job));
+ if (child->pp_core) {
+ trace_gpu_sched_switch(
+ mali_pp_core_description(child->pp_core),
+ sched_clock(), mali_pp_job_get_tid(job),
+ 0, mali_pp_job_get_id(job));
+ }
#endif
#if defined(CONFIG_MALI400_PROFILING)
#endif /* #if defined(CONFIG_MALI400_PROFILING) */
#if defined(CONFIG_GPU_TRACEPOINTS) && defined(CONFIG_TRACEPOINTS)
- trace_gpu_sched_switch(mali_gp_core_description(group->gp_core),
- sched_clock(), mali_gp_job_get_tid(job),
- 0, mali_gp_job_get_id(job));
+ if (group->gp_core) {
+ trace_gpu_sched_switch(mali_gp_core_description(group->gp_core),
+ sched_clock(), mali_gp_job_get_tid(job),
+ 0, mali_gp_job_get_id(job));
+ }
#endif
group->gp_running_job = job;
}
#if defined(CONFIG_GPU_TRACEPOINTS) && defined(CONFIG_TRACEPOINTS)
- trace_gpu_sched_switch(mali_pp_core_description(group->pp_core),
- sched_clock(), mali_pp_job_get_tid(job),
- 0, mali_pp_job_get_id(job));
+ if (group->pp_core) {
+ trace_gpu_sched_switch(mali_pp_core_description(group->pp_core),
+ sched_clock(), mali_pp_job_get_tid(job),
+ 0, mali_pp_job_get_id(job));
+ }
#endif
group->pp_running_job = job;
}
#if defined(CONFIG_GPU_TRACEPOINTS) && defined(CONFIG_TRACEPOINTS)
- trace_gpu_sched_switch(
- mali_gp_core_description(group->gp_core),
- sched_clock(), 0, 0, 0);
+ if (group->gp_core) {
+ trace_gpu_sched_switch(
+ mali_gp_core_description(group->gp_core),
+ sched_clock(), 0, 0, 0);
+ }
#endif
}
#endif
#if defined(CONFIG_GPU_TRACEPOINTS) && defined(CONFIG_TRACEPOINTS)
- trace_gpu_sched_switch(
- mali_pp_core_description(group->pp_core),
- sched_clock(), 0, 0, 0);
+ if (group->pp_core) {
+ trace_gpu_sched_switch(
+ mali_pp_core_description(group->pp_core),
+ sched_clock(), 0, 0, 0);
+ }
#endif
#if defined(CONFIG_MALI400_PROFILING)
_mali_osk_list_move(&(group->pp_scheduler_list), &group_list_idle);
#if defined(CONFIG_GPU_TRACEPOINTS) && defined(CONFIG_TRACEPOINTS)
- trace_gpu_sched_switch(mali_pp_get_hw_core_desc(group->pp_core), sched_clock(), 0, 0, 0);
+ if (group->pp_core)
+ trace_gpu_sched_switch(mali_pp_get_hw_core_desc(group->pp_core), sched_clock(), 0, 0, 0);
#endif
mali_pp_scheduler_unlock();
}
#if defined(CONFIG_GPU_TRACEPOINTS) && defined(CONFIG_TRACEPOINTS)
- trace_gpu_sched_switch(mali_pp_get_hw_core_desc(group->pp_core), sched_clock(), 0, 0, 0);
+ if (group->pp_core)
+ trace_gpu_sched_switch(mali_pp_get_hw_core_desc(group->pp_core), sched_clock(), 0, 0, 0);
#endif
_mali_osk_wait_queue_wake_up(pp_scheduler_working_wait_queue);