From patchwork Mon Aug 30 17:27:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chase Douglas X-Patchwork-Id: 143031 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o7UHS16e024177 for ; Mon, 30 Aug 2010 17:28:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756149Ab0H3R17 (ORCPT ); Mon, 30 Aug 2010 13:27:59 -0400 Received: from adelie.canonical.com ([91.189.90.139]:47342 "EHLO adelie.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755539Ab0H3R17 (ORCPT ); Mon, 30 Aug 2010 13:27:59 -0400 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1Oq895-0004Il-RR; Mon, 30 Aug 2010 18:27:47 +0100 Received: from cpe-75-180-27-10.columbus.res.rr.com ([75.180.27.10] helo=canonical.com) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Oq895-0006JI-F4; Mon, 30 Aug 2010 18:27:47 +0100 From: Chase Douglas To: Jiri Kosina Cc: H Hartley Sweeten , Julia Lawall , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: wake up reading tasks when debug event occurs Date: Mon, 30 Aug 2010 13:27:45 -0400 Message-Id: <1283189265-5015-1-git-send-email-chase.douglas@canonical.com> X-Mailer: git-send-email 1.7.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 30 Aug 2010 17:28:14 +0000 (UTC) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 850d02a..adff4ef 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -570,6 +570,8 @@ void hid_debug_event(struct hid_device *hdev, char *buf) buf[i]; list->tail = (list->tail + i) % HID_DEBUG_BUFSIZE; } + + wake_up_interruptible(&hdev->debug_wait); } EXPORT_SYMBOL_GPL(hid_debug_event);