From 3b117d2690309697140e704ae1f893823f7e7dc4 Mon Sep 17 00:00:00 2001 From: Francisco Franco Date: Fri, 2 Nov 2018 18:29:10 +0000 Subject: [PATCH] cpu-boost: don't try to boost if the thread hasn't been initiated or boom goes the dynamite Signed-off-by: Francisco Franco --- drivers/cpufreq/cpu-boost.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/cpu-boost.c b/drivers/cpufreq/cpu-boost.c index 6070e081ee67..cc8bb315acd6 100644 --- a/drivers/cpufreq/cpu-boost.c +++ b/drivers/cpufreq/cpu-boost.c @@ -222,6 +222,9 @@ void do_input_boost_max() unsigned int i; struct cpu_sync *i_sync_info; + if (!cpu_boost_worker_thread) + return; + cancel_delayed_work_sync(&input_boost_rem); for_each_possible_cpu(i) {