From bcb702baa4745d7cb4ac49e680daff0052cc59af Mon Sep 17 00:00:00 2001 From: a17671 Date: Tue, 18 Sep 2018 17:18:44 +0800 Subject: [PATCH] Disable the MobiCoreDriver TEE log Trustonic TEE log spam the kernel log messages And consume much CPU, disable it for now Change-Id: I28d54Montanaa8d3f965ec833f2f6b5f8f0b43de2abe Signed-off-by: a17671 Reviewed-on: https://gerrit.mot.com/1242999 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Master Yoda Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c b/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c index ae3153f06024..a886bf53a3b0 100755 --- a/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c +++ b/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c @@ -172,6 +172,7 @@ static inline int log_msg(void *data) static void logging_worker(struct kthread_work *work) { +#if 0 static DEFINE_MUTEX(local_mutex); mutex_lock(&local_mutex); @@ -190,6 +191,7 @@ static void logging_worker(struct kthread_work *work) log_ctx.tail = 0; } mutex_unlock(&local_mutex); +#endif } /* @@ -199,6 +201,7 @@ static void logging_worker(struct kthread_work *work) */ void logging_run(void) { +#if 0 if (log_ctx.enabled && !log_ctx.dead && log_ctx.trace_buf->head != log_ctx.tail) #if KERNEL_VERSION(4, 9, 0) > LINUX_VERSION_CODE @@ -206,6 +209,7 @@ void logging_run(void) #else kthread_queue_work(&log_ctx.worker, &log_ctx.work); #endif +#endif } /* -- 2.20.1