From patchwork Thu Oct 6 07:03:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 4542 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9007B23F5A for ; Thu, 6 Oct 2011 07:03:58 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 82257A18CA1 for ; Thu, 6 Oct 2011 07:03:58 +0000 (UTC) Received: by eyb6 with SMTP id 6so3261059eyb.11 for ; Thu, 06 Oct 2011 00:03:58 -0700 (PDT) Received: by 10.223.5.3 with SMTP id 3mr1701389fat.4.1317884638356; Thu, 06 Oct 2011 00:03:58 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.23.170 with SMTP id n10cs119014laf; Thu, 6 Oct 2011 00:03:58 -0700 (PDT) Received: by 10.213.31.74 with SMTP id x10mr1685573ebc.143.1317884637656; Thu, 06 Oct 2011 00:03:57 -0700 (PDT) Received: from eu1sys200aog107.obsmtp.com (eu1sys200aog107.obsmtp.com. [207.126.144.123]) by mx.google.com with SMTP id s6si456005eeb.115.2011.10.06.00.03.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Oct 2011 00:03:57 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.123 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.123; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.123 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob107.postini.com ([207.126.147.11]) with SMTP; Thu, 06 Oct 2011 07:03:57 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 460FB153; Thu, 6 Oct 2011 07:03:37 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1D98A144F; Thu, 6 Oct 2011 07:03:37 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id A41C124C07D; Thu, 6 Oct 2011 09:03:32 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Thu, 6 Oct 2011 09:03:36 +0200 From: Linus Walleij To: Grant Likely , Cc: Lee Jones , Chris Blair , Linus Walleij Subject: [PATCH 2/2] spi/pl022: elevate workqueue to realtime priority Date: Thu, 6 Oct 2011 09:03:31 +0200 Message-ID: <1317884611-22168-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.3.2 MIME-Version: 1.0 From: Chris Blair The PL022 is used in performance-critical applications where we need soft realtime response from the SPI data pipe. Elevating the workqueue to realtime has been proven to improve response times for us, so we propose to make this change permanent. Signed-off-by: Chris Blair [Commit message written by me] Signed-off-by: Linus Walleij --- drivers/spi/spi-pl022.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 4761b31..debdaeb 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -1612,7 +1612,7 @@ static int __init init_queue(struct pl022 *pl022) (unsigned long)pl022); INIT_WORK(&pl022->pump_messages, pump_messages); - pl022->workqueue = create_singlethread_workqueue( + pl022->workqueue = create_rt_workqueue( dev_name(pl022->master->dev.parent)); if (pl022->workqueue == NULL) return -EBUSY;