Received: by 10.213.65.68 with SMTP id h4csp1965937imn; Thu, 5 Apr 2018 06:53:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx49/uiR4ylP3VWeh05vqyj+PhdAV/uaz8DJCfYR39WujTXUUlbeUH24h122YdwCpv+ZBSmVn X-Received: by 10.98.236.4 with SMTP id k4mr17039186pfh.240.1522936425383; Thu, 05 Apr 2018 06:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522936425; cv=none; d=google.com; s=arc-20160816; b=xDtkkgbEmUKiPKthOhtAhw7TJ8OxoxIGNcKCxh9tE7QCbaOkg2YlU70WFCzG1GyxuN PmoutGJP1lezkTBovZ4397Zm7GfXOmnhTDYN2d+nhXxttTzX1GSR4H4EHENOkzI6nA4t QPHeK+i+yV1yQomI06HT9L55MoA3yDjZXdV5rABHd6GrrRurxt03ElNQnPqxSayQ9Foi +C65cVLVA9O0X8BAdbE0qH/4/v1+gMvNcwNG3uiQQFLvvaGB65hN1LML4RVZw+CsbtJK i9mSryW6VS7Bn9IExY2j3OwNOiRbRhAND8/ARk5u3KlXFr8fWww7lmC0zONHLf+j/66o 4riw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=GRzf13QcQpqNvA7b2WQ8xaXZbz3MH7svrF/rOxu0ASE=; b=djLpaAENTwY5ix58M9ozyc6WtZhBjG0Zt7S4wwFWhI+FpWki/G9EZO3p/4Z1SQcyPQ TG99YEV3Y5n8bCLouJxtWiTCLRvMYzUdWQL1nURGOWvU1NckJvpHFJWeNFYPIinqsGiB hid/UcN9Ilcz7r95kKlWcQEE1SE4EfUdGCWOZbKFji3cKtAm8A+D1qcf0TWBruGuht2V paZ+S99h5LpIQRpoQASadCUKMGtMP7/iDWrbSs+SmHwezHSQPo8uucMlOZ5f0A6Wyi85 +jauVrg/z3BFzIgdMFFp3kZTb9PvU/muf0iwDWj6ZFGHuIzf/AkwIceedCBeVJ/fVqYD FQPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UALTnhX/; 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 f6si5569427pgr.690.2018.04.05.06.53.31; Thu, 05 Apr 2018 06:53:45 -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=@gmail.com header.s=20161025 header.b=UALTnhX/; 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 S1751506AbeDENwB (ORCPT + 99 others); Thu, 5 Apr 2018 09:52:01 -0400 Received: from mail-ot0-f177.google.com ([74.125.82.177]:33379 "EHLO mail-ot0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbeDENv6 (ORCPT ); Thu, 5 Apr 2018 09:51:58 -0400 Received: by mail-ot0-f177.google.com with SMTP id 23-v6so27248912otj.0; Thu, 05 Apr 2018 06:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=GRzf13QcQpqNvA7b2WQ8xaXZbz3MH7svrF/rOxu0ASE=; b=UALTnhX/7OQCQgTZry1g4KdkoB6vNye3qQ/m3GEfZkvevU9Y2Bejd/mAg8nUV+P5ie xrXczQy0ts+MylzSVL8xv8hRlcO/c9vgl+JIbgtctW4zqJS7m0IYzDhuYby0rpcurZAA Q5xLIF38JTF/Y/1WYlXga4ZVcfVNHYkl/kiLD8IUi+Gd4lUdRWwAeh0TA9oipBxiuWkC BZixpCuFgIkVNyW0wt0r/YwMmhl9D7eoX/u2DQsU+J8sP6qE3wWvZ/5fraj/2riezEcQ DfpWBSUzJCdYHoZ1dKjND9fWBehQQ90wC83JpbB23Rm1GijnY6wSfDMiHYg7i5FKoVOh 28Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=GRzf13QcQpqNvA7b2WQ8xaXZbz3MH7svrF/rOxu0ASE=; b=b8OrtTwsGnfPzTx4rZ8bsgR6A6rrZ+Pg6HGciCx95zAhk5wMihD91ULDcq9XNTtg2r wvXj7riPfBc/vpUlEBSRo8EAjNCK/Mc22/8dl2RkH6yftqDTfTsfvrnq79OXLi/ixL/U Vns2hMwufQm94H62QdUVXxaYXlYSiLh/Fq/uJf4RfzIgfAvD9vz+Op8VZ+5s4oUPnHzJ eC6BXexdQkaEWqLBwX+1uOjiNh759Foeo6rQorZhzAzcXk2hcPm4rcdxkX1wY5atcKrX GS1zSJEgVmxdbfCd/gKGdfh6/R9JroYSIhdFWpwgMuhtTC+5thLAqZx0zFz0wHterC+S xVtg== X-Gm-Message-State: ALQs6tBUw++eJv0+ydtn/hKLNgT6Ievd2UKkhA1kWumpCBm+2uqdWijp gX85Gl8WSb04A5n+7pFTGY/oByi1qTM7nv7DSXk= X-Received: by 2002:a9d:5919:: with SMTP id t25-v6mr10590614oth.217.1522936318017; Thu, 05 Apr 2018 06:51:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:9f7:0:0:0:0:0 with HTTP; Thu, 5 Apr 2018 06:51:57 -0700 (PDT) In-Reply-To: <20180405122758.GO4082@hirez.programming.kicks-ass.net> References: <1736751.LdhZHb50jq@aspire.rjw.lan> <5752796.zf5UeYB95r@aspire.rjw.lan> <20180405122758.GO4082@hirez.programming.kicks-ass.net> From: "Rafael J. Wysocki" Date: Thu, 5 Apr 2018 15:51:57 +0200 X-Google-Sender-Auth: WgBaIdiZeKg78h84MEgloXyBY9U Message-ID: Subject: Re: [PATCH v9 09/10] cpuidle: menu: Refine idle state selection for running tick To: Peter Zijlstra Cc: "Rafael J. Wysocki" , Linux PM , Frederic Weisbecker , Thomas Gleixner , Paul McKenney , Thomas Ilsche , Doug Smythies , Rik van Riel , Aubrey Li , Mike Galbraith , LKML , Len Brown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 5, 2018 at 2:27 PM, Peter Zijlstra wrote: > 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 ? Yes, it should.