summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Pfetsch <spfetsch@google.com>2019-08-13 11:16:42 -0700
committerKen Huang <kenbshuang@google.com>2020-05-04 01:55:15 +0000
commit9106fbb0dde29e72583919e06f58d504f06d9523 (patch)
treebd608fe1847b463d884ba45f08aab2d62179fc3d
parentdfb8cf71771db26fc5f36fe679fedc4eaffb8f51 (diff)
downloadsec_touch-9106fbb0dde29e72583919e06f58d504f06d9523.tar.gz
sec_touch: remove extraneous work queue flush
There is an unconditional flush of the suspend/resume work queue in the screen state callback from the display driver. There is no need to immediately flush the queue since any pending suspend/resume work will be canceled or completed before the next suspend/resume is queued. Bug: 155280636 Test: after suspend/resume/AoD, touch can work Change-Id: Ibe26f057c5ff942b975710af43f40bf104f97917 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Signed-off-by: Ken Huang <kenbshuang@google.com>
-rw-r--r--sec_ts.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sec_ts.c b/sec_ts.c
index dc63070..6f8dfc2 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -4589,9 +4589,6 @@ static int sec_ts_screen_state_chg_callback(struct notifier_block *nb,
return NOTIFY_DONE;
}
- /* finish processing any events on queue */
- flush_workqueue(ts->event_wq);
-
blank = *((unsigned int *)evdata->data);
switch (blank) {
case DRM_PANEL_BLANK_POWERDOWN: