cpufreq: interactive: fix bug: release enable_sem when exit input event

Forget release enable_sem when porting patch.

Fixes: a4524d29de ("cpufreq: interactive: fix race between input event and governor exit")
Change-Id: Icb07b2a7a8ccc48dfd7bd2bc3cc5cbbf28d3c631
Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
Liang Chen
2019-12-23 14:25:19 +08:00
committed by Tao Huang
parent ffd7b5d081
commit 4bd29509fe

View File

@@ -1168,6 +1168,8 @@ static void cpufreq_interactive_input_event(struct input_handle *handle,
pcpu->loc_floor_val_time = ktime_to_us(ktime_get());
spin_unlock_irqrestore(&pcpu->target_freq_lock, flags[1]);
up_read(&pcpu->enable_sem);
}
spin_unlock_irqrestore(&speedchange_cpumask_lock, flags[0]);