Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3089632ybg; Sat, 6 Jun 2020 10:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsNhqeu9rX8PktrYBhgMEKhJ1177/oDIeTJq0DDK39LtbhHi9f2gmO0DYcbmIsBoqRqeGw X-Received: by 2002:a17:906:fac8:: with SMTP id lu8mr13657611ejb.432.1591463984917; Sat, 06 Jun 2020 10:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591463984; cv=none; d=google.com; s=arc-20160816; b=xrfD+Uc2vSQ9+mKLhzvIvbGLHsLjE/QdPi/CoXSPp5ECrBE/plNwkZyDKhhesRdmMz L69LLk03UVNSVe9QTdtUEhPGe0bjQ0oDDEsGLVwe8Nh7CB9bvSfNpkGd9EgbUngIOh9N hSencx/jHbqnQz/41YJP4J7c3wPQ9C+oojGF6a4QnRAPdqtiOkcPxGA58vQdKU179nCj +DN5P2MDUtdvu+cMlfk5DTVobtlXvuvyxPVcb0SkD1RS0q6ea1z0xu6C04BngkPOLrKZ 4h46Irzuym3ps582dN23d6f2n2bblaV9Ul9E265hre+tcjV+1OO2/pLbXjIFQ/LxSRoE spPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=VH/1wFmb7NmH+70psqFNaP/r2XmmR4oY3LN6VKeD/u8=; b=wrRTyyyKUifR3oSnfsgUnrxXLBw+uCB13gSGjz39U/RfZRzf7WG6Xi2uyYWI5ye37a aoG+XsOfvWOchTBZp2nk6K/+/seTfwVI4Ai5jhlWnvm4USFfLH4Kwn0k84ZoFbBrIs6k PcdDC2s1HxmZs8c45z+43999d4tIqz4U62Rb/Z3FJtws0km+YgfZYukjdBgfDG0SNWOT JTkh/spEK8NpXFCeD90JiUw+HqUIm8hu8RF97luG1zklnLLoVb1kGqtY7xwBeJ3Nw7xZ 8KDDCPPBzVMH6IlxLQRT0DsSp3Yhqw2eihf3HVDKQ3+xRhPQEpUnc1ZOGg/86EV0Kk7I 8hXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si5762717edt.259.2020.06.06.10.19.22; Sat, 06 Jun 2020 10:19:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728842AbgFFRR0 (ORCPT + 99 others); Sat, 6 Jun 2020 13:17:26 -0400 Received: from mga07.intel.com ([134.134.136.100]:44122 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbgFFRR0 (ORCPT ); Sat, 6 Jun 2020 13:17:26 -0400 IronPort-SDR: 8Q6KPWq+seKknQelPUbgjuXiUpwYkzIio3C2QENmQEF1MqoblsXTuQfbmX8VkaUqtnQaPO646T 1nasLXgkGRiQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2020 10:17:24 -0700 IronPort-SDR: j5v0gMfuGTjpLcr+3dT2X/x/7FkneIpNZ+Q06w7AiHW57U44I1+haxyfwLkFnvCrITwArhsAhc FNXDJ8IXMbWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,481,1583222400"; d="scan'208";a="472257243" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by fmsmga005.fm.intel.com with ESMTP; 06 Jun 2020 10:17:22 -0700 Date: Sun, 7 Jun 2020 01:18:23 +0800 From: Chen Yu To: "Rafael J . Wysocki" , Len Brown , Greg Kroah-Hartman , Michal Miroslaw Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2][RFC] PM-runtime: Move all runtime usage related function to runtime.c Message-ID: <20200606171822.GA3705@chenyu-office.sh.intel.com> References: <3e7c571eb9e444c6e326d5cbb1f6e2dce4bb52fe.1591380524.git.yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e7c571eb9e444c6e326d5cbb1f6e2dce4bb52fe.1591380524.git.yu.c.chen@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 06, 2020 at 03:05:35AM +0800, Chen Yu wrote: > In order to track all the runtime usage count change, move the code > related to runtime usage count change from pm_runtime.h to runtime.c, > so that in runtime.c we can leverage trace event to do the tracking. > Meanwhile export pm_runtime_get_noresume() and pm_runtime_put_noidle() > so the module can use them. > > No functional change. > There is a compile issue found by lkp, will send a new version out. Thanks, Chenyu