summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/workqueue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 3ad6806c7161..41b8388f4284 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -1139,6 +1139,9 @@ void wq_worker_tick(struct task_struct *task)
pwq->stats[PWQ_STAT_CPU_TIME] += TICK_USEC;
+ if (!wq_cpu_intensive_thresh_us)
+ return;
+
/*
* If the current worker is concurrency managed and hogged the CPU for
* longer than wq_cpu_intensive_thresh_us, it's automatically marked