From 15fed74bc7cd0110d3bd08abb4350829173ab6cb Mon Sep 17 00:00:00 2001 From: Hazel Victoria Campbell Date: Thu, 4 Jun 2020 14:23:58 -0600 Subject: [PATCH] Fix incompatibility with MUQSS scheduler from -ck1 kernels https://ck-hack.blogspot.com/ https://en.wikipedia.org/wiki/Brain_Fuck_Scheduler#MuQSS --- vdo/kernel/workQueueStats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vdo/kernel/workQueueStats.c b/vdo/kernel/workQueueStats.c index 3b081983..1aa40f1e 100644 --- a/vdo/kernel/workQueueStats.c +++ b/vdo/kernel/workQueueStats.c @@ -123,7 +123,11 @@ void logWorkQueueStats(const SimpleWorkQueue *queue) { uint64_t runtimeNS = 0; if (queue->thread != NULL) { +#ifdef CONFIG_SCHED_MUQSS + runtimeNS += queue->thread->sched_time; +#else /* CONFIG_SCHED_MUQSS */ runtimeNS += queue->thread->se.sum_exec_runtime; +#endif } unsigned long nsPerWorkItem = 0;