소스 검색

qcacmn: Record queue depth in scheduler history

The scheduler history feature contains logic to capture the queue depth
at the time of message insertion, but an oversight means this
information is not actually recorded in the scheduler history. Record
the captured queue depth in the scheduler history when a message is
dequeued for processing.

Change-Id: Ia2dd6f641055237b8f9c546077f7b5992c697330
CRs-Fixed: 2332752
Dustin Brown 6 년 전
부모
커밋
27d564647e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scheduler/src/scheduler_core.c

+ 1 - 0
scheduler/src/scheduler_core.c

@@ -73,6 +73,7 @@ static void sched_history_start(struct scheduler_msg *msg)
 		.type_id = msg->type,
 		.queue_start_us = msg->queued_at_us,
 		.queue_duration_us = started_at_us - msg->queued_at_us,
+		.queue_depth = msg->queue_depth,
 		.run_start_us = started_at_us,
 	};