Received: by 10.213.65.68 with SMTP id h4csp1879921imn; Thu, 5 Apr 2018 05:29:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx48PqPCW/aCMr9kK10Cv7x+Q8FeZj3kSQhRa1xeHbyO829VSe+yJ8idOl+d0d3o1SoDVSEc+ X-Received: by 10.98.141.78 with SMTP id z75mr17126942pfd.174.1522931390774; Thu, 05 Apr 2018 05:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522931390; cv=none; d=google.com; s=arc-20160816; b=vD+Tzyn4es8xu1PMsrPzCerVmTIK3bM35mz8mn8e6A6BmEYvGxl/wKJWwDW7WvdXv3 j1JjmabS+ufn8ch0/FbenHDonDDzDnFgR0r+fK975jSLQw+PHpm7oayPUMP47XSbutSK Iq84rZg/5HZ0gvkMnCXKxdVWVvFN+FD/Xu93SNWaYRNf9yW9cFkL4VEA0SqQkbSq/EJ+ nl6pmHLYo6VO0/T97xwKqyCFRvwMvPaIkPy+Plc2oFEJxisW+Vk9yCpShA8h/7Be8D2l N9LGML5ucViwBPQyr40C9o5OeecZDAr7rZIBhW3m7F97A0jAurUNKWcza6fI7qeEfVgw Oxog== 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=uzFaE9PL0gzioHomyqmXqV0YtIWkrMFIWosM6Z7V864=; b=v8LdzwtGXjGcJjDKePN1EBYckvKYcVjLRLyb2F3t7zeCbaQk8NQf+tBB6tYIXAOf+A /HQHbJpLLRfU57ce0n+E5WKWKxsaqe4RjTLf+6sTHaY4bB+DGBUZu/LII6ZaQAJbIU9N JIE9d/2jDUb0LRC4hIesm60NMm3MHIRxnykEDTH1hSrClZNkAYU1sTt/kh0NjlXD/bwq Uh2eKNoFH/40rUn4gWdKtF7NUygoKTxMCQb2LffQ7IV6fhqqn3vNeGUtJPlpybAs3V7W DZ1IOzsO6YNEqm6JUAoiRcC75jxR0XT6hlGdfoHK8B8ofCc+rimftTyfgSDHzvxYEVuJ Z9Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=OGsrAUYf; 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 t3si5406895pgc.87.2018.04.05.05.29.36; Thu, 05 Apr 2018 05:29:50 -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=merlin.20170209 header.b=OGsrAUYf; 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 S1751360AbeDEM22 (ORCPT + 99 others); Thu, 5 Apr 2018 08:28:28 -0400 Received: from merlin.infradead.org ([205.233.59.134]:56704 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbeDEM20 (ORCPT ); Thu, 5 Apr 2018 08:28:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=uzFaE9PL0gzioHomyqmXqV0YtIWkrMFIWosM6Z7V864=; b=OGsrAUYf/MrJ1wY2FQ0ioOh39 dWEEWfzFAJbv3J9OSeK7A/rE3pL75L4UQ4WafnWZ91kxQBjkL2Ztboa93BDI9g3CBVFlkUb/gItQK Z5mWvmLOuLQ32rh2s+XQrgWUCt2F4SV0h8/+iqk0ebqV3DMIgDYIYMMeQij6ml+QKu8wngUNJBgKl HeLp05ThDXZk7ELiuSbetCl0jkhNlPoiEp5WN6od7pkshagxZEg8032IiBYgJ84wjtIPbL1lNImup /jsJWG45o/t8YOkPQS45frbf8iuensXVYAKMdPfRXRjFjcqrn+pqZXViADW6cZqNOYbgzS3Jo17jR Icz7GwRHQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f43zl-0000wr-7V; Thu, 05 Apr 2018 12:28:01 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 70F98202A29FD; Thu, 5 Apr 2018 14:27:58 +0200 (CEST) Date: Thu, 5 Apr 2018 14:27:58 +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: <20180405122758.GO4082@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: > -static inline ktime_t tick_nohz_get_sleep_length(void) > +static inline ktime_t tick_nohz_get_sleep_length(ktime_t *delta_next) > { > - return NSEC_PER_SEC / HZ; > + *delta_next = NSEC_PER_SEC / HZ; > + return *delta_next; Shouldn't that be TICK_NSEC ?