From patchwork Tue Mar 15 22:53:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirill A. Shutemov" X-Patchwork-Id: 638021 X-Patchwork-Delegate: tomi.valkeinen@nokia.com 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 p2FMsTuf006654 for ; Tue, 15 Mar 2011 22:54:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754428Ab1COWyL (ORCPT ); Tue, 15 Mar 2011 18:54:11 -0400 Received: from shutemov.name ([188.40.19.243]:49806 "EHLO shutemov.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754653Ab1COWx3 (ORCPT ); Tue, 15 Mar 2011 18:53:29 -0400 Received: by shutemov.name (Postfix, from userid 500) id ECB54D5162; Wed, 16 Mar 2011 00:53:26 +0200 (EET) From: "Kirill A. Shutemov" To: linux-kernel@vger.kernel.org Cc: "Kirill A. Shutemov" , Tomi Valkeinen , linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 06/13] omap: use list_move() instead of list_del()/list_add() combination Date: Wed, 16 Mar 2011 00:53:18 +0200 Message-Id: <1300229605-14499-6-git-send-email-kirill@shutemov.name> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1300229605-14499-1-git-send-email-kirill@shutemov.name> References: <1300229605-14499-1-git-send-email-kirill@shutemov.name> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Mar 2011 22:54:50 +0000 (UTC) diff --git a/drivers/video/omap/blizzard.c b/drivers/video/omap/blizzard.c index 87785c2..c0504a8 100644 --- a/drivers/video/omap/blizzard.c +++ b/drivers/video/omap/blizzard.c @@ -397,8 +397,7 @@ static inline void free_req(struct blizzard_request *req) spin_lock_irqsave(&blizzard.req_lock, flags); - list_del(&req->entry); - list_add(&req->entry, &blizzard.free_req_list); + list_move(&req->entry, &blizzard.free_req_list); if (!(req->flags & REQ_FROM_IRQ_POOL)) up(&blizzard.req_sema); diff --git a/drivers/video/omap/hwa742.c b/drivers/video/omap/hwa742.c index 0016f77..084aa0a 100644 --- a/drivers/video/omap/hwa742.c +++ b/drivers/video/omap/hwa742.c @@ -269,8 +269,7 @@ static inline void free_req(struct hwa742_request *req) spin_lock_irqsave(&hwa742.req_lock, flags); - list_del(&req->entry); - list_add(&req->entry, &hwa742.free_req_list); + list_move(&req->entry, &hwa742.free_req_list); if (!(req->flags & REQ_FROM_IRQ_POOL)) up(&hwa742.req_sema);