From: JP Abgrall Date: Tue, 5 Mar 2013 22:25:36 +0000 (-0800) Subject: ANDROID: input: keychord: log when keychord triggered X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4017c45e8bc6f34710fd3727c5bc18184b26879c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ANDROID: input: keychord: log when keychord triggered log keychord id at info level just before waking up processes. Signed-off-by: JP Abgrall [AmitP: Rename task_list in wait_queue_head{} to align with upstream commit 2055da97389a ("sched/wait: Disambiguate wq_entry->task_list and wq_head->task_list naming")] Signed-off-by: Amit Pundir --- diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c index 3ffab6da411b..9e568b0a0901 100644 --- a/drivers/input/misc/keychord.c +++ b/drivers/input/misc/keychord.c @@ -126,8 +126,12 @@ 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,