Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753555Ab3FTFY0 (ORCPT ); Thu, 20 Jun 2013 01:24:26 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:49484 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417Ab3FTFYX (ORCPT ); Thu, 20 Jun 2013 01:24:23 -0400 Date: Wed, 19 Jun 2013 22:24:22 -0700 (PDT) Message-Id: <20130619.222422.1490912163789374913.davem@davemloft.net> To: wangyijing@huawei.com Cc: linux-kernel@vger.kernel.org, guohanjun@huawei.com, jiang.liu@huawei.com, mchan@broadcom.com, netdev@vger.kernel.org Subject: Re: [PATCH 4/9] bnx2: use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM) From: David Miller In-Reply-To: <1371543157-14968-1-git-send-email-wangyijing@huawei.com> References: <1371543157-14968-1-git-send-email-wangyijing@huawei.com> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 621 Lines: 15 From: Yijing Wang Date: Tue, 18 Jun 2013 16:12:37 +0800 > Pci core has been saved pm cap register offset by pdev->pm_cap in pci_pm_init() > in init path. So we can use pdev->pm_cap instead of using > pci_find_capability(pdev, PCI_CAP_ID_PM) for better performance and simplified code. > > Signed-off-by: Yijing Wang Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/