static void logging_worker(struct kthread_work *work)
{
-#if 0
static DEFINE_MUTEX(local_mutex);
mutex_lock(&local_mutex);
log_ctx.tail = 0;
}
mutex_unlock(&local_mutex);
-#endif
}
/*
*/
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
#else
kthread_queue_work(&log_ctx.worker, &log_ctx.work);
#endif
-#endif
}
/*
wake_up_process(log_ctx.thread);
/* Debugfs switch */
- log_ctx.enabled = true;
+ log_ctx.enabled = false;
debugfs_create_bool("swd_debug", 0600, g_ctx.debug_dir,
&log_ctx.enabled);
return 0;