Received: by 10.223.185.116 with SMTP id b49csp3594201wrg; Tue, 6 Mar 2018 01:32:07 -0800 (PST) X-Google-Smtp-Source: AG47ELvZdzYypQ9sLhlEHYSkvSPhcYoDsMPIZOhfCcuIn7sJmACthxiZz3ocwYaqUjTsMBxPJC/Y X-Received: by 10.98.210.70 with SMTP id c67mr18232665pfg.164.1520328726984; Tue, 06 Mar 2018 01:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520328726; cv=none; d=google.com; s=arc-20160816; b=W5YETwWi1pTBjeSAiY+XfP1RTAM9waXvyPxcq7OHI69GFBDIR1jPWl7E1vlF+Niv6z 0p4QVzG+LTwmuCzgTlWuj8ZjDws/00QW8oz7X0fTNjzSTYfQ+lt1RVXd9xkECRKSjKHI yyr0xN7pByq//TUA+UN6Y85hkO1KrSUYhrTdGRv/RqQpxOeg42bMxwtbXZ50QjL9kp+P QWv5Fp+yX0Tm4mzpoijjKZxl8SGy6LhpA37mn6+R1ltAVPL2mBCDUzPDAFnrtTS4Z6MR YceWu7a8AG8uk9uFOhGfhRTJICMX5HwFcR8KyEwbTDkaxB3yJT0QMdtVzjt2eAqE7RrN AFxQ== 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=ZnYtEFgGpa2+eGR1Xjv5xBLYTLRyCU+LKjoLzeuw7cA=; b=FC6IB1LulGpmefIS9IxRfTu7Um6stUTTEVnA4A7V2/l9s6uF5OdjorNldxrIgAMWzM syaxSjOcRHD10P+w/+TmZYIEt1O+jq0cIKtWl72wQFFHxpqvKEGOhvmuOqgN5Sg295qt mePGwjxt8ycYFbxGWrhSda3RDUrgioMZF4QAcoRdjUGVl1bALCxHvr+RElnnrtmphG7C n/5fk9bgn4FJwKxNbLtqlG9WlJ6eejDzsd9DMb0xk8ejIPkOQtS1hSVEaAMwRBasMlPK a6Ip6JtMmFQlNDayDaRMRYqpq0/+PyljSNzlHbSy3xSb6bfBFtuQAeGZD4eimgSn62WL wOyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pNnNo3dS; 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 z15-v6si11196016pll.405.2018.03.06.01.31.52; Tue, 06 Mar 2018 01:32:06 -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=@gmail.com header.s=20161025 header.b=pNnNo3dS; 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 S932408AbeCFJ2d (ORCPT + 99 others); Tue, 6 Mar 2018 04:28:33 -0500 Received: from mail-ot0-f174.google.com ([74.125.82.174]:35669 "EHLO mail-ot0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbeCFJ2a (ORCPT ); Tue, 6 Mar 2018 04:28:30 -0500 Received: by mail-ot0-f174.google.com with SMTP id r30so441817otr.2; Tue, 06 Mar 2018 01:28:30 -0800 (PST) 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=ZnYtEFgGpa2+eGR1Xjv5xBLYTLRyCU+LKjoLzeuw7cA=; b=pNnNo3dSVFnZhnJFTbUAiPBsQP5tQ+PiDuSPN/8BITs28fbo8s8lWTQ7X2oh1kI9wg FmShXUsFur3apqiNlkeSUeGSkGKSz+rhimX+Rrip7onGdErph7WJ4ANz4nKtnJKmexS5 sOyjzGxA6F2UT9yl9Hv6D71sdU2CG1gioIH/otUlRHvTGF0EaAcmJ4N7tZL3C6a7XUHS q6eE/qzsNnxcNycD1YpUCUznIvLmwChR+S6xCuM+cLKhqwA4xByNonc2Ew2NnYTYvqo+ +4PIg5cI3h2D5aNUwruBKJMZoSfKNxYM4ISk8o7R3XAzfPAROcL0y3dmHj8PtxT6abRm D1TQ== 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=ZnYtEFgGpa2+eGR1Xjv5xBLYTLRyCU+LKjoLzeuw7cA=; b=CdT9v+bmqSeWJC/qD17iEvj75JJpk8IuaTNkblPrEMPOnw9cqbEGgiSaJ9mEBmU6aw AawVbPzDFV0k86nRqnb1cXxkHAzANWe+aICf78CnvUtLRPO6xpg1YV64mVB+xNUbOPGg WoqEAFnTVSEqxGfUeqEKO6bEgw8svW18+z3/Oaj2870xulpTaZPR2xULqQ99ozar+Uk/ u3iCURE1piKolRhQjZ85O9Q62tD6hSBdF4DGMj3nbH5YoshL4g9ARTzI9SzTANM5IdLG bdIYPCKzegAfArt29/Nt+lHcLTU+SRU9fEqRgLCCJDXtXmWLxjuGLecakyYrDN8TZlG8 8R4g== X-Gm-Message-State: AElRT7HcuNJeJAENFrjzhk1LfNJS8QFTAp0I+wPEtc5L0qLTzNP4Enhp IBLW69YbFHU6MvjmwuQ4JPtK1Lio2YhwKYs4l5U= X-Received: by 10.157.10.67 with SMTP id 61mr11796035otg.370.1520328510256; Tue, 06 Mar 2018 01:28:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.44.146 with HTTP; Tue, 6 Mar 2018 01:28:29 -0800 (PST) In-Reply-To: <1756432.KnKEJ20PhI@aspire.rjw.lan> References: <2067762.1uWBf5RSRc@aspire.rjw.lan> <1756432.KnKEJ20PhI@aspire.rjw.lan> From: "Rafael J. Wysocki" Date: Tue, 6 Mar 2018 10:28:29 +0100 X-Google-Sender-Auth: efo0AlnNvHZ1gJoi9V-rT7gizhA Message-ID: Subject: Re: [RFC/RFT][PATCH v2 4/6] cpuidle: Return nohz hint from cpuidle_select() To: "Rafael J. Wysocki" Cc: Peter Zijlstra , Linux PM , Thomas Gleixner , Frederic Weisbecker , Paul McKenney , Thomas Ilsche , Doug Smythies , Rik van Riel , Aubrey Li , Mike Galbraith , LKML 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 Bummer. :-( On Tue, Mar 6, 2018 at 10:05 AM, Rafael J. Wysocki wrote: > + if (drv->states[idx].flags & CPUIDLE_FLAG_POLLING) { > + *nohz_ret = false; > + } else if (drv->states[idx].target_residency < TICK_USEC) { > + /* > + * Do not stop the tick if there is at least one more state > + * within the tick period range that could be used if longer > + * idle duration was predicted. > + */ > + *nohz_ret = first_idx > idx && > + drv->states[first_idx].target_residency < TICK_USEC; This is reversed, sent a wrong version of the patch. I'll resend with this fixed shortly.