Skip to content

Commit

Permalink
cpufreq: cpu-boost: don't boost if input_boost_ms is <= 0
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Franco <[email protected]>
Signed-off-by: engstk <[email protected]>
  • Loading branch information
franciscofranco authored and engstk committed Jun 25, 2020
1 parent 5ae7131 commit ccaeec4
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 @@ -217,6 +217,9 @@ static void do_input_boost(struct work_struct *work)
unsigned int i, ret;
struct cpu_sync *i_sync_info;

if (!input_boost_ms)
return;

cancel_delayed_work_sync(&input_boost_rem);
if (sched_boost_active) {
sched_set_boost(0);
Expand Down

0 comments on commit ccaeec4

Please sign in to comment.