Received: by 10.213.65.68 with SMTP id h4csp1884486imn; Thu, 5 Apr 2018 05:33:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49c+q2I3Pc3dnaa2p2/2q43NpVuBC4uhBxzSF324YlNRftJB8C28GC9sJtWRqPuRoSQ3ysv X-Received: by 10.101.102.69 with SMTP id z5mr14691894pgv.438.1522931639256; Thu, 05 Apr 2018 05:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522931639; cv=none; d=google.com; s=arc-20160816; b=qnfHi9yo4d8gW0AqTFQgrDc2ODk9+e4Qr5K1LltojDgyl0lWkkokp+mixVlwYsN7F/ wVAdlS/wk2Tx8BZcALh248g/2eikWFUKXwLZzgeSni2y6zFvK2HuMZ9aTK/DTz8b8/r0 lgdjui6cZ8XxZ6kq+aT4kvETBHqQdCZpvMqoidFGdC8dn2LsUIHJFxvzo6izEerMqxxO 3m9lqLp3NRWVxeFFE63l7OvO4QfDIkdiuZgBWgWpVxmG8fmCJCQ1V/S6IVel0lU/GdiJ uf3K4zrfnvHIy3FrWcsAabuBIJXVj+0BkDbR85jXFk5arkk39eKrOS+o3RWLcFWMG9q4 65tQ== 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=j+FJ4SY+eiy3hCC4dAR+IFzPk5FUzvv+IrywqGYmX+A=; b=TaUOaxj8n3eix4IqyxCajfMhuG1OQk97RRX1+2nwXseGuIXEjfXBccRljtfD3u8BO1 Ol4HA0lr3XCJWr1YRzhDGPFEgnP/MdmYS3J/4e+kasAagjwRSOS+i8pPzhyuGVMdUtkk NzjInwCdWqukZgYMuCJ+PqWS5PEUZ2VzLK7DSh/YTeAkOTpFMWfO++lTXFpPS9C/IQu3 IpKe0ADj4qpPhdYanzghwm06e4wEv85+JVxZq1hQJ9m8AmXc2dzO92nT/mhYFwdQMqww b6JjOxQjacK6iH/tVMq2OWVeSpJg/nIWrjMGtpmYNgObxvnJRjH5jirZ2NBI8WSCoIuu yQFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DG1qU9RL; 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 44-v6si8233410plc.252.2018.04.05.05.33.45; Thu, 05 Apr 2018 05:33:59 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DG1qU9RL; 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 S1751284AbeDEMce (ORCPT + 99 others); Thu, 5 Apr 2018 08:32:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54682 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeDEMcd (ORCPT ); Thu, 5 Apr 2018 08:32:33 -0400 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=j+FJ4SY+eiy3hCC4dAR+IFzPk5FUzvv+IrywqGYmX+A=; b=DG1qU9RLwHA+SrhvVUGqqSO25 DcYy+pq6+coZ+4QOi3Cylu2SiNv+d65UeFoMlZmrhOtVvSy705+sRndFKrTwBrA74IENiFkbUD8cb UyA68IxnTe+zVE8XRT9wYDButavVtAa4pcxCIBAKZjJOYhWxCIopsHWV+maA07xW2/cQQjVcGbR5L Kx9oiZ2MbnK5v0Q5aTTZXuU9EuOC5LkwiRHsA4O8z6nU6O1uwSes3KZx59ZaPUWJMgmD22WBDareL f4ajJyk3nTeDrev2QBldTCoxEDu8OevD0CQ8IVJ4bwmRkhS4eZ86O5Sn5TEJGJBWxTfthJo6/zcp2 HibEdKW0Q==; 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.90_1 #2 (Red Hat Linux)) id 1f443x-0007np-Lq; Thu, 05 Apr 2018 12:32:21 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1463F202A29FD; Thu, 5 Apr 2018 14:32:19 +0200 (CEST) Date: Thu, 5 Apr 2018 14:32:19 +0200 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: Linux PM , Frederic Weisbecker , Thomas Gleixner , Paul McKenney , Thomas Ilsche , Doug Smythies , Rik van Riel , Aubrey Li , Mike Galbraith , LKML , Len Brown Subject: Re: [PATCH v9 09/10] cpuidle: menu: Refine idle state selection for running tick Message-ID: <20180405123219.GP4082@hirez.programming.kicks-ass.net> References: <1736751.LdhZHb50jq@aspire.rjw.lan> <5752796.zf5UeYB95r@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5752796.zf5UeYB95r@aspire.rjw.lan> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04, 2018 at 10:49:34AM +0200, Rafael J. Wysocki wrote: > + data->next_timer_us = ktime_to_us(tick_nohz_get_sleep_length(&delta_next)); > + unsigned int delta_next_us = ktime_to_us(delta_next); We really should be looking at removing all that us nonsense from the idle code, but that'll be another series.