From patchwork Thu Nov 19 07:04:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 61237 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAJ75SOD029861 for ; Thu, 19 Nov 2009 07:05:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752775AbZKSHEz (ORCPT ); Thu, 19 Nov 2009 02:04:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752778AbZKSHEy (ORCPT ); Thu, 19 Nov 2009 02:04:54 -0500 Received: from mail-px0-f180.google.com ([209.85.216.180]:43638 "EHLO mail-px0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752775AbZKSHEn (ORCPT ); Thu, 19 Nov 2009 02:04:43 -0500 Received: by pxi10 with SMTP id 10so1424604pxi.33 for ; Wed, 18 Nov 2009 23:04:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=kZhK2QcBbZywDesu4s0chuCNMnkBWtHd04s7HLo536M=; b=QYwO5rZLxcTKU60HkH1jy8Suyv9uXfMoJJi3M3kDCb1/RD+0RwXf+WpQtJyF/QwPvM HmRhFAk37XxeJnf48tfCCq/vKFCzgrpiqe8PJkpdKR2NeMILFlTFjqwIj2+oL3/tD2b3 vuKBfPnAzS3SOHGAdlXDVep6GsBx3ukJglIJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=tZjmxq1+2VAhsNTK2fW8GRlSGQVc9HNeFAUsJ5+Cr/JQDEix8CRuwwyH84gs9KWZin SyVDfAL9pgreBCbjAka8SelZLSZJXHxgjfaE7RtObZ8n5QNcY2yl+VOneQ2FixbR4iCe YDWYshCwXWhJjOE8LzYPjfGlFMChSeQ5qX684= Received: by 10.115.67.8 with SMTP id u8mr6099736wak.190.1258614289322; Wed, 18 Nov 2009 23:04:49 -0800 (PST) Received: from mailhub.coreip.homeip.net (c-24-6-153-137.hsd1.ca.comcast.net [24.6.153.137]) by mx.google.com with ESMTPS id 22sm180823pzk.14.2009.11.18.23.04.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 23:04:48 -0800 (PST) Date: Wed, 18 Nov 2009 23:04:45 -0800 From: Dmitry Torokhov To: Linux Input Cc: Samu Onkalo Subject: [PATCH] Input: polled device - schedule first poll immediately Message-ID: <20091119070445.GC3010@core.coreip.homeip.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/input-polldev.c b/drivers/input/input-polldev.c index 094f4b9..9628be6 100644 --- a/drivers/input/input-polldev.c +++ b/drivers/input/input-polldev.c @@ -88,8 +88,7 @@ static int input_open_polled_device(struct input_dev *input) if (dev->open) dev->open(dev); - queue_delayed_work(polldev_wq, &dev->work, - msecs_to_jiffies(dev->poll_interval)); + queue_delayed_work(polldev_wq, &dev->work, 0); return 0; }