Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4017c45e authored by JP Abgrall's avatar JP Abgrall Committed by Amit Pundir
Browse files

ANDROID: input: keychord: log when keychord triggered



log keychord id at info level just before waking up processes.

Signed-off-by: default avatarJP Abgrall <jpa@google.com>

[AmitP: Rename task_list in wait_queue_head{} to align with upstream commit
        2055da97 ("sched/wait: Disambiguate wq_entry->task_list and wq_head->task_list naming")]
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 3ed870f4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -126,9 +126,13 @@ static void keychord_event(struct input_handle *handle, unsigned int type,
done:
	spin_unlock_irqrestore(&kdev->lock, flags);

	if (got_chord)
	if (got_chord) {
		pr_info("keychord: got keychord id %d. Any tasks: %d\n",
			keychord->id,
			!list_empty_careful(&kdev->waitq.head));
		wake_up_interruptible(&kdev->waitq);
	}
}

static int keychord_connect(struct input_handler *handler,
					  struct input_dev *dev,