Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6741399ybi; Mon, 22 Jul 2019 00:46:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyt6lUvKLX9kNPK1QJEHmVCn1uMNSadhJ8h0+ZN+Fl1AhQMvZmlyxch6k+kZrCpFmmjnfD3 X-Received: by 2002:a17:902:2f:: with SMTP id 44mr75147097pla.5.1563781563956; Mon, 22 Jul 2019 00:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563781563; cv=none; d=google.com; s=arc-20160816; b=sVevuXOX1vLUWj7Eb+kRdxYQ3uPbkBM73ahuQba1c8Q8OAtr+p14M4Zoni0hz0sXmy 4+iM3WJjb7YyG68fJJzLrnMUwYpKpGtj9XjhgLnHXIZVNlaF9s23XIUD3aw3x+yOGkk8 PlUoktj+ponxOoS59/xO7yEw4srw4hdUf/6HgmuoHJhY/p+blWhcIULl3m8x+rXAYBKf X3zFLBixXHZB+CtgJ2lZuK58+PDfppbulb2MsybwYkl8e8qMoB6zHkZi9uydlHsPGVk0 +eHE66nhpvMPwSKv2GGKnnhp0THdoQJmB8gXzmgsdahQeEOIpPzdCIzETOFuL1zeMjp4 HwuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=puLCpVsk2zXRNes0TU9H7REMHrxWw7mGMmrvpYA6gY8=; b=WUk6Ibz1Pu7S+gfAlOh2EsJOsgwzABPB/obGrDZc2jvt9tcTbsUyrOpoLL6USI5xbg ppUlxG75rF25obPeXeJyet7xnGHan9MpBDFGTy4cXuFTmpKi+ZrFWWFwrMOPdrUyFV31 v6ANf3PHBjyw+X1KhkpuWADgzEbLZU15V2C8w8atvgRJusMTYB4SS3W8zD056rijs7ZL HzvdZTPDiQ1PYOi4ISsTEkmaEJHKcUoW3GbxAk79AODw66e0rzYpEJwsMAh49mRhXjR2 HQT+ytQTRiOiz6WiWy/SInpCBUkiOLR5cGjSlDaeTxHYpWRf/mw4JbW3hUe8/mzmuIg3 noFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a36si36259977pje.14.2019.07.22.00.45.48; Mon, 22 Jul 2019 00:46:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727962AbfGVHh7 (ORCPT + 99 others); Mon, 22 Jul 2019 03:37:59 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:36391 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbfGVHh6 (ORCPT ); Mon, 22 Jul 2019 03:37:58 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R471e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0TXUNmRj_1563781075; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TXUNmRj_1563781075) by smtp.aliyun-inc.com(127.0.0.1); Mon, 22 Jul 2019 15:37:56 +0800 Subject: Re: [PATCH v2 1/2] cputime: remove rq parameter for irqtime_account_process_tick func To: Peter Zijlstra Cc: Ingo Molnar , Frederic Weisbecker , Wanpeng Li , Thomas Gleixner , linux-kernel@vger.kernel.org References: <20190719024242.249429-1-alex.shi@linux.alibaba.com> <20190719081156.GE3419@hirez.programming.kicks-ass.net> From: Alex Shi Message-ID: <0fdee790-638b-9228-9c85-b8fefa78b7f2@linux.alibaba.com> Date: Mon, 22 Jul 2019 15:37:55 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190719081156.GE3419@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2019/7/19 ????4:11, Peter Zijlstra ะด??: > On Fri, Jul 19, 2019 at 10:42:41AM +0800, Alex Shi wrote: >> Using the per cpu rq in function directly is enough, don't need get and >> pass it from outside as a parameter. That's make function neat. > > Please look at code-gen; I'm thinking this patch makes things worse. > Thanks a lot, Peter! This patch reference one more time on this_rq(), that do increase cputime.o size. I will move it after access_process_tick() patch in v3. That could resovle the problem and decreases objfile's size on each of patches. Thanks Alex