From patchwork Sun Aug 14 05:26:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhaktipriya Shridhar X-Patchwork-Id: 9278643 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 63BD560780 for ; Sun, 14 Aug 2016 09:02:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5196F2715B for ; Sun, 14 Aug 2016 09:02:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4627728A1A; Sun, 14 Aug 2016 09:02:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E18FB2715B for ; Sun, 14 Aug 2016 09:02:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752581AbcHNJCx (ORCPT ); Sun, 14 Aug 2016 05:02:53 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36738 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbcHNJCw (ORCPT ); Sun, 14 Aug 2016 05:02:52 -0400 Received: by mail-pf0-f194.google.com with SMTP id y134so2018772pfg.3; Sun, 14 Aug 2016 02:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fp6FEJFljffZhc7drL4bYL12X0eTzvz/3DCLQLfwSss=; b=H0Qrjdgc5mbBBOAEQZE0jziYFs30lwQFAc0qjthuDR37RW9m3jKy3Hw5eDn4TiMWnC brzW/ckHckMuUSu2wr5wXt6b0toNGY5WAfvgQR0LJbNeMHLt2hbxs1RFV+NbDtvl7/X6 wvWQEXE6w3INBgdmJcvR6TMq0P7u4SiLEJ5Tn6vKGxAkaGf1x3AJe2f3DL7Tq1xALLaR jFUJ2oXiUMVbCobFfaXAe/b7Q0xr72NDuPe/NkGVyJKLf2i918KZaP5VOfl8ZnVyHQzI V168dOjWBEwbsUjOplHNQ2WQRDx0PAYUYR3UaCxClyxbw+wMtoxhgQ70r/uhvMbzSL41 RCJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fp6FEJFljffZhc7drL4bYL12X0eTzvz/3DCLQLfwSss=; b=DxxNzWAHuRJaFn9+rnC64MuuUNXYI0SfizRyATqTa37lneIKRBX3cIwX/yi0macP8C jBd+miOIP5X9WMK/bABaUi3k4w+XbA+2OFQWKii3vAA561dbtgmnn8KHpBnRrm2zt3r/ D69Y8Pksqwwn2OiDqHvQMf1HkvKYwwQ6hIPRNZUckwNFEtkhgLhEiMpPtYyET96hY1ZH wYjWcsgkoJPDn1JSESHfntvVdo3jr8TuofoHtnq7CzY+k+EPjn39w5fVBxed9YX6S2EB sG6tIj4CY5QNa+ZkTCtXtSid+5IQqNPKhduwbqty1Gd5ss0AQcRnnEoQ/T87c+1Fb0Bs 49gQ== X-Gm-Message-State: AEkoouvXdz/qMSIAsl9e+V1M3sHDLvrwu/Lmx27G1pVHDTf+ebTH7lA5NEDfD9MlX0zsWA== X-Received: by 10.98.27.200 with SMTP id b191mr42234356pfb.111.1471152400932; Sat, 13 Aug 2016 22:26:40 -0700 (PDT) Received: from Karyakshetra ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id h86sm23705331pfh.46.2016.08.13.22.26.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Aug 2016 22:26:40 -0700 (PDT) Date: Sun, 14 Aug 2016 10:56:38 +0530 From: Bhaktipriya Shridhar To: Dmitry Torokhov , Hans de Goede , Pali =?iso-8859-1?Q?Roh=E1r?= , Chris Diamand , Stefan Assmann , Richard Pospesel , Lars-Peter Clausen , Takashi Iwai Cc: Tejun Heo , patches@opensource.wolfsonmicro.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] Input: wm97xx: Remove deprecated create_singletheread_workqueue Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "ts_workq" has been identity converted. It queues work items viz &wm->ts_reader and &wm->pen_event_work which map to wm97xx_pen_irq_worker (handles a pen down interrupt) and wm97xx_ts_reader (the touchscreen sample reader) respectively. Hence, an ordered dedicated workqueue has been used. WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure. Signed-off-by: Bhaktipriya Shridhar Acked-by: Charles Keepax --- drivers/input/touchscreen/wm97xx-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c index 1534e9b..c0af844 100644 --- a/drivers/input/touchscreen/wm97xx-core.c +++ b/drivers/input/touchscreen/wm97xx-core.c @@ -500,7 +500,7 @@ static int wm97xx_ts_input_open(struct input_dev *idev) { struct wm97xx *wm = input_get_drvdata(idev); - wm->ts_workq = create_singlethread_workqueue("kwm97xx"); + wm->ts_workq = alloc_ordered_workqueue("kwm97xx", WQ_MEM_RECLAIM); if (wm->ts_workq == NULL) { dev_err(wm->dev, "Failed to create workqueue\n");