[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1445935676-5830-1-git-send-email-czoborbalint@gmail.com>
Date: Tue, 27 Oct 2015 09:47:56 +0100
From: Bálint Czobor <czoborbalint@...il.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-input@...r.kernel.org,
JP Abgrall <jpa@...gle.com>,
Bálint Czobor <czoborbalint@...il.com>
Subject: [PATCH 2/3] input: misc: keychord: log when keychord triggered
From: JP Abgrall <jpa@...gle.com>
log keychord id at info level just before waking up processes.
Signed-off-by: JP Abgrall <jpa@...gle.com>
Signed-off-by: Bálint Czobor <czoborbalint@...il.com>
---
drivers/input/misc/keychord.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c
index 3ffab6d..a5ea27a 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.task_list));
wake_up_interruptible(&kdev->waitq);
+ }
}
static int keychord_connect(struct input_handler *handler,
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists