Received: by 10.223.176.5 with SMTP id f5csp2348784wra; Mon, 5 Feb 2018 02:32:03 -0800 (PST) X-Google-Smtp-Source: AH8x224VOjzVzxEj/F2rgBjtlE6UntuJhVLnB3XVSBe8biiTFE9yfPN6yphRIVisecwGx2/aS3Oa X-Received: by 10.99.126.73 with SMTP id o9mr30033538pgn.429.1517826723725; Mon, 05 Feb 2018 02:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517826723; cv=none; d=google.com; s=arc-20160816; b=Do2+eMJIl/T3S5PFYj8hZI3B5E87Nsw0i7JtiNoav9fvb79bt5vlCBBaGNnIPg4++8 jzsmDCmAx/1QwThmW9fCrrBTAqosXlu3xWHtAnZb5ZYrMizJgq4XN2yvQpKjNxD/cGgC h4q6zVEyt3oNbVIuZJS+Vg8IvIQGTOMntYT2uleQvzkeCmqWDHGe2XnW5PpyN1RWeupT Wuwb/pK8SncqkxR5BnCvqmXFIECGUS0wzFrn39AS4jiB2KngQFClZnLmFXMrmtNRKDS8 Ko2UWhgqyBZBuN4fg8ecXpp2AoR95Bnj/TwFSJHi7Kcoxc/rrFUeI99umqDiDnFuYtYi Qs/w== 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:dkim-signature:arc-authentication-results; bh=8atTCB3X9C2Ew52s08ASGKKlGBUz3RWZXKbIvebh0vY=; b=0p3OK0H31//UOO3eHfwJFllhqoj/NO417VuM/EypyfP2ACYe/0m72x1VaMqaoXMwA5 27DJcWGCyPGlwi1EcycdDMI2NEG0I7gzdT9LrMh3syDc+rusBkXVMRTzunVutSCN94Ty uCR+JvPRG2lBVSrro5t76FjERf7rSIL8PN7EuKZklWEvd/VCyuAkEoIWnBh8elkeicE4 u5NyZ8N6Y/tKluzgcvKEelZqSAOhGaWbgYAb1eTYBEsssILn0LOC9QNblsovoLrnwgCo HMrrD948myAMWI0avn8GWch1tAaitzweu5+G8r3YzyuDjuK1HAtL2cS20VCmAFNCeLw6 UjbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WZOO6qQW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y88si698236pfj.85.2018.02.05.02.31.49; Mon, 05 Feb 2018 02:32:03 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WZOO6qQW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766AbeBEKas (ORCPT + 99 others); Mon, 5 Feb 2018 05:30:48 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:38485 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752324AbeBEKan (ORCPT ); Mon, 5 Feb 2018 05:30:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8atTCB3X9C2Ew52s08ASGKKlGBUz3RWZXKbIvebh0vY=; b=WZOO6qQWbRssgCGzT6URZOqYe 8gK2B7ONvoa9nI35uEBrRgDTqEddNcWBd8l0D6itPDZvRxcdBAYFAjAGvEiHsd7Ez5qJpf0xWVWWc 94WBqrjpIxCBHO/uR9lGR/3QyqWlBhuZJNhrSx8qkU2xFtAVgXCb9E+499Lk1B0GSMktxxs59OhEV SoLRfV/af12n+wcKB6GI+jEe8tHSvD7c5cqqNnG52cLOgJFrJE3VKq0RxqkIx9qVgiY8/zZ5JqZdD hEiWpLTEc8f38s3lpc/+MXfnuCrPOc9MfImGAFhfNOzIQ8egok/usHO9TKOBt7ObxJ1sD8MJkyDuN bC/XWqzXA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eie2r-0003LX-53; Mon, 05 Feb 2018 10:30:41 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 804052029F9F9; Mon, 5 Feb 2018 11:30:38 +0100 (CET) Date: Mon, 5 Feb 2018 11:30:38 +0100 From: Peter Zijlstra To: Wen Yang Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, jiang.biao2@zte.com.cn, zhong.weidong@zte.com.cn Subject: Re: [PATCH] sched/rt: Make update_curr_rt() more accurate Message-ID: <20180205103038.GI2249@hirez.programming.kicks-ass.net> References: <1517800721-42092-1-git-send-email-wen.yang99@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517800721-42092-1-git-send-email-wen.yang99@zte.com.cn> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 05, 2018 at 11:18:41AM +0800, Wen Yang wrote: > rq->clock_task may be updated between the two calls of > rq_clock_task() in update_curr_rt(). Calling rq_clock_task() only > once makes it more accurate and efficient, taking update_curr() as > reference. > > Signed-off-by: Wen Yang > Reviewed-by: Jiang Biao Thanks!