mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user