Skip to content

Commit

Permalink
cpu-boost: don't try to boost if the thread hasn't been initiated or …
Browse files Browse the repository at this point in the history
…boom goes the dynamite

Signed-off-by: Francisco Franco <[email protected]>
  • Loading branch information
franciscofranco committed Nov 2, 2018
1 parent aa6948a commit 3b117d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/cpufreq/cpu-boost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3b117d2

Please sign in to comment.