Received: by 10.213.65.68 with SMTP id h4csp1966409imn; Thu, 5 Apr 2018 06:54:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx49xhmdM6BxrwpXjrHHCkWC9o1eZmSJf7kIwaTYk6MV24U7wYTC1nqtwEufWYbmbFq78643m X-Received: by 10.99.37.70 with SMTP id l67mr15304266pgl.106.1522936452498; Thu, 05 Apr 2018 06:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522936452; cv=none; d=google.com; s=arc-20160816; b=Rit+NPBz/qht5wAbOgMVzjImVzNjvwNG9jYzwPVEkuC1m0X/EUN5PquMXzR6pDkpSP /1Y8oZPakhHxuCtPTrSOR5pMJDE18sB3fXPHl76Vh1qeEX1KbAtlrSEN/tBlw1mfd/VA AFga1FOgWH6kaUbziMUsyX2/qNhz/sedOER6RdLtdmr9pIwbakRgQexT/zjr64RAAKR4 rOvhc2J5TyYfTOWF+DhCrUko/aWXkNAHpjpfuCRfuh/BpMUG/dbvPjMx65H9WjU7Mtp0 E4Kc5v2TpOCyzRcjQ30aOq7et7RPi2t4hjs6Gf3jYpRmKYGPs7tKR8LCsL6XiJIa7saP PmUg== 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=pX8KoF7XJbu3RUXToZcbA0WMyU+OLHzGAmSAlCm2CNs=; b=HLyy33T4+CQGwdJFTtl2lyPT1NcaHQtwyQazVwl9JkuU+ug44Z/SRv7GUyjN4oGLf0 kWq0Ce7NjLfvA34DX1XV79EBtmZ4o6xFA9bMbdmpRl2d3jNRRh8vy8Ccw0LL9nz/uOLw tbvYOjLjMoAF6bKBiCMiZeL+LXm2wiwFaucKUiQOen1BSJWyV2v5rJacBUJE+rxnTm87 4pNHZax/a3IeuvAHQj3BN1oK1/3JTIZ5xtHNVNwOOe/NLIhfV30m4AGkMUYATf4uX+EN ywyseZPtQO34CR4qhOqZcuIxP6PcdCOsa9csWpJ51t7ZZ8kGXY2hvkp2wX5wUD9gMOdq vUIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DvmdK8PN; 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 x10si5551587pgt.109.2018.04.05.06.53.58; Thu, 05 Apr 2018 06:54:12 -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=DvmdK8PN; 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 S1751618AbeDENwZ (ORCPT + 99 others); Thu, 5 Apr 2018 09:52:25 -0400 Received: from mail-ot0-f172.google.com ([74.125.82.172]:39051 "EHLO mail-ot0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751540AbeDENwX (ORCPT ); Thu, 5 Apr 2018 09:52:23 -0400 Received: by mail-ot0-f172.google.com with SMTP id a14-v6so9076753otf.6; Thu, 05 Apr 2018 06:52:23 -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=pX8KoF7XJbu3RUXToZcbA0WMyU+OLHzGAmSAlCm2CNs=; b=DvmdK8PNsNPZ0GuhBQBIrp3WpfxQk9ubVBnwAeeoQOpPFvcCyVVq7V+qIEtB4PCq04 KTx0GlTwoPTxnHCb8XEVDV44DR8BN2savj1H/qoxvcHV2S+qf0BFkYNFJgeTjx7ecR3Z 97N3BALKTGH9sj1ZfC25s2x2qcOi/Wp/nEmvKzTCA9yM+7ug/ZGf7NqaIsa8EzDKnmYI mUDBwH15gJ40o2nr0n3YcmR2lo7GbD+eCbJi7AgoqsIQwXWrLJkvpzHn8n9PC/S8F1ip s8fgRBP8Ta7qKCD5tVGS/sYDXB1oPiQX/YQF1mNUjY2nGQ6IbXGX+Kp1ziZZF/x/RXEG A6jQ== 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=pX8KoF7XJbu3RUXToZcbA0WMyU+OLHzGAmSAlCm2CNs=; b=cR4Dfd97X+Z4dBrzrz2jpILGoEUrUSc79Mo5PXg0JDAwim47IDT2CvEhhSeM73JbPW LmDuHrxbX1QfSynTOOHOvcR9aOhESO8NugTkOVPy1N4TQy4oYdaVgWEPwd7J2Tgcm1mV O785aIqgEYs5XfzqkMKoQuddy+7C9VFjcgEi968CAyJYhTlGtFe4ERoSfYzlG38WO86F iZ2yxkkc4fRu3BX9R5tlVJ2qPwNPJ/33XYvaMpyjaC7JM5aXOtlLe7Wb49U9pCOfOQP0 Sa6U1M1tGrNExKXVJ5P/AJv1kmTfSjWwLBbLBWYuRl+hmO3CwumnkJ6B5SB1KCKmL0EG tm8w== X-Gm-Message-State: ALQs6tAG4X7vHlBQDJZHGuDtzJRZcGYSNfcxO6sPdRC+MBJeeECf0wQk AMv1bntZ4RfFNy+1jEMBOFCez4Z1sKgaDtV4bVE= X-Received: by 2002:a9d:5f0e:: with SMTP id f14-v6mr12733628oti.370.1522936343298; Thu, 05 Apr 2018 06:52:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:9f7:0:0:0:0:0 with HTTP; Thu, 5 Apr 2018 06:52:22 -0700 (PDT) In-Reply-To: <20180405123219.GP4082@hirez.programming.kicks-ass.net> References: <1736751.LdhZHb50jq@aspire.rjw.lan> <5752796.zf5UeYB95r@aspire.rjw.lan> <20180405123219.GP4082@hirez.programming.kicks-ass.net> From: "Rafael J. Wysocki" Date: Thu, 5 Apr 2018 15:52:22 +0200 X-Google-Sender-Auth: HKdNM2ADLTximE-bjF168EO8HEU 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:32 PM, Peter Zijlstra wrote: > 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. Right.