Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4449126pxf; Tue, 16 Mar 2021 13:52:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxnjhzNkBGgnSdQu3b2pk9b60ff65gey/rQ5THOEMsnNBWHwmE7iAd1DFFm5RK7A6hY5fb X-Received: by 2002:a05:6402:b21:: with SMTP id bo1mr37801049edb.368.1615927942656; Tue, 16 Mar 2021 13:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615927942; cv=none; d=google.com; s=arc-20160816; b=ThbFhLyI6hJC6r0r3uYclw4fIaZHyBh9KNknNNdZDeOAWgJHucsoZfVYJgC7RHjBFi 5IhGzji13UNDM36FUAuSLTn8ziLW7zpq7LfHFZMQ5gejWx7HimV4swNhXNXyr0aBu71O Wa/m3igIbt5BKr1oxvfUoLT9++oegmOj2BoK6cjTeS5TqOSYlCIX1uYnOiXcB5xa/m5+ vaJrIvusbp+v4BnNMJKa9oZNWS0PFQ3emhaIU4K+cFbw4OuKmv9lx/mcaDbpO2uEj4jn G8Mj+D7nVM9a5Dg1fdJgeI/ajWqbSRiGFNH0b3Tr0QP7+7ZHOJddEJ4ZE1sMC0YfMkE3 Z+yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=I7ZEP/paw2W0PU7zcIUjqWbSxWw/n2kHGTHP3rq4/mo=; b=Tcl2/5tAeiELQFYat3jLKcacrFtoH6GKq1K73ri+hsT1MmKTMKgPCwvcgTipEp3C/G n4g6qJWF8hmisY9KFutuVIPRPUfU+60ArtP41K/CFbe+mis2Tcj3J4LzrnDtAofeKosr Fv/cFmu7nRjUia/1WOyFIGaYZXPVaZQIxo1P/+Ua/Hqe+bfvplE/Li4BND1JOezCeg/Z inuhfydI6VnYNFdbNFZSI4KbWEN/1neAWxsqQgM7vnHoUUzZYMP5iPnCQGVaqcFuOyZn H8JAiriqPxmx4lmsQYAfdKutW9UbA/KznGts/Yc/RLK//KP6kt6xrWGYdK1/hN+6ahN1 uocg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=W2r3Ntbb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf11si13603339ejc.601.2021.03.16.13.51.36; Tue, 16 Mar 2021 13:52:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=W2r3Ntbb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238694AbhCPQZz (ORCPT + 99 others); Tue, 16 Mar 2021 12:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235308AbhCPQZj (ORCPT ); Tue, 16 Mar 2021 12:25:39 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2283BC06174A for ; Tue, 16 Mar 2021 09:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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; bh=I7ZEP/paw2W0PU7zcIUjqWbSxWw/n2kHGTHP3rq4/mo=; b=W2r3NtbbFCBWyQORfrlwQwdO1g qF+0s4m9I/Vd2bgogRFObva8guJKxJNvwTuB8a5dgpFzv3+J9jJHaFCXVIyNh0jI8V7mHhXOjXbSK SEoyCam2DOs+419RYhiIEdT0q6BbMUllTNKM49+Sel0gD0gs0Q3N4uOCXOL1cWvTdUsJM6Kz5JH5Q iIjF9BVXX6XJO6Mxb3qdUeHmkQzfmluqph+WBorh3jOjVaRUqCpQbTgZCZWW89PKEKPWvn6WbABCg FpJMzlqgWS4GGoRLJtNVD55f3cohQvYOSPSD7QcQh15xpR/1AbN6GuN9fZoqVzojHUt7uAmfrLg19 AuWlJOig==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lMCVY-001ETp-L5; Tue, 16 Mar 2021 16:25:26 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 47AFA304D58; Tue, 16 Mar 2021 17:25:21 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DF9242B88085B; Tue, 16 Mar 2021 17:25:20 +0100 (CET) Date: Tue, 16 Mar 2021 17:25:20 +0100 From: Peter Zijlstra To: "Zhou Ti (x2019cwm)" , g@hirez.programming.kicks-ass.net Cc: "Rafael J. Wysocki" , Frederic Weisbecker , Thomas Gleixner , LKML , Yunfeng Ye , "Paul E . McKenney" , Marcelo Tosatti , Ingo Molnar , "rafael@kernel.org" Subject: Re: =?utf-8?B?5Zue5aSNOiBbUEFUQ0ggMDEvMTBd?= =?utf-8?Q?_tick=2Fnohz=3A_Preven?= =?utf-8?Q?t?= tick_nohz_get_sleep_length() from returning negative value Message-ID: References: <20210311123708.23501-1-frederic@kernel.org> <20210311123708.23501-2-frederic@kernel.org> <20210316133703.GC639918@lothringen> <20210316145352.GE639918@lothringen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 04:08:08PM +0000, Zhou Ti (x2019cwm) wrote: > But I don't think it's a good idea to handle this in callers, because > logically the function shouldn't return negative values. Returning 0 > directly would allow idle governors to get another chance to select > again. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?