Received: by 2002:ab2:7853:0:b0:1fa:5c73:8e2d with SMTP id m19csp4471lqp; Thu, 30 May 2024 10:13:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUipve5oPKTEd2ByN2cGEcJGzT1Bd7gtmis1Zgqz2+5+PHOMzWQd2BcZqvzfxVmVVwokxHf65Eql93LTQ4akzZdVfxKha1y0iSpYKgi6Q== X-Google-Smtp-Source: AGHT+IEV3Geb8Wsfk18oWdy5sHvntvcdJ2tlEqFtjjLzF2NusTw4mDGpUkl6P8gH0wOXx0/SOcdS X-Received: by 2002:a05:6a20:a120:b0:1af:d0bc:d149 with SMTP id adf61e73a8af0-1b26451e283mr3556907637.6.1717089214168; Thu, 30 May 2024 10:13:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717089214; cv=pass; d=google.com; s=arc-20160816; b=niW+iNiD0Z4r1YbWn5/NZ2hDPl6EJryh30KlyxJG0avKTQMxzpW1MBWH795HyVWYv0 cbT7LYvNU5Ksdv5Q9rYoEljBt/15rkumw6MekVZzC/w/Ps8DcEkO8/j1XKU5KTFtzFl7 y0vZd1NvQkfJ1oYs3JnvCA6Xa/6oG2ZBfTv7ipU74YE32JG1E/Sm+UGtxwB9SAxAj35c SZDwzvQmUHc972V9pO/kAxF7GOF7lATUASgOIAYCVD3hFGoXHp8w5wO04UgDkLzmLelt gUjPdkqqgHs6BZmSzDXGkhGLtvEcCJjoOAQ65m/I+2kO25R1qpu43YhMk+K7Ta3IVXRe btGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=k9WNw07QJ/U1KAldkvE87rPuzzR+mHCX4xM2Z6mjDg8=; fh=5ooqWYYjCTPQhGItnNxJnZlPGITXmxciYoQfCiVRXkE=; b=CNj4WWjsOwcVQxysIi4lNz2dF0kpkKaKNHS7iaRF8uY9444RNAlNQ6Kzrt4a6hhNnd f8hSXFeZS/Xflj739cgRtILocUwl9d6TyY0QnCoWUxlm1VKZYIp24iN8WwFf1xCORsrv 71OrZ1K04vrnR4WRFL2SluzxBqjVfdBOPqjKsIdMz6mugtq2mfJxSVjgOMTEYCn32rMd LB58FQBr2i5ohpJJHBc9z8Gjdhxd6diTwo+TJEPLhRwU6rq2WCZyqx7/eq1ZKK9AAf+b F8+HuIwZWm9x90Dve7/R9kGNOjjZQ9295yX3mdS1bu8WFVGn6srAAWc0Munbk1JIROut nbhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TMUz8mtr; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-195718-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822bbc7408si13184868a12.881.2024.05.30.10.13.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 10:13:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195718-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TMUz8mtr; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-195718-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F4A2281F71 for ; Thu, 30 May 2024 17:13:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46FFE45949; Thu, 30 May 2024 17:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TMUz8mtr" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D91F44393 for ; Thu, 30 May 2024 17:12:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717089164; cv=none; b=WEho+kWxcrBkUXSF+FkPE4EFHbBTS2DGzZzt47ot82ReKqv/dC+abLPr3mEDUxey0Wa9Y3mm8BL2YFIlgCVs2OtOZruL8wE1VFOAfBvw3t9thAWCWKYj/AX/VdBik2i3M17QdWrgh55I3kTBnbGfJyeu3gNI8YCV/XI6n/IkcGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717089164; c=relaxed/simple; bh=+Tpcy+uaJJW8E5UNAROhyUdF9rN9CrJwMeloPLsLaws=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mOV2oouLcjD2AHy5oY9Mm4Qvtlk8U4ZiJlAKyjWImxBaF7uPmmEfc973MCSChq9M1UigLynKGGG0ISc4fh8KTx9SfbfqU7+TiqDUArIG9l3vWYBhdiotxHahUhL1K04Nb7mV/TbAo6at48t3q6mD3zE0oOOqd2Krp/Za4Y0hI8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TMUz8mtr; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717089162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=k9WNw07QJ/U1KAldkvE87rPuzzR+mHCX4xM2Z6mjDg8=; b=TMUz8mtrBB6hfpG+IV8WNtxaUet9Ig6HqBujWjE9pSIrRAxmzCOBIhd6irbrLIa2aBCiUw 0UetjtwQzEqhWgBxgjAEEkE/beHViAMGRCEmpV5U8kjLGAwzqR33ODSjBCmkE+jseRnJ38 krELReriQut/msuyIvdcRnSo4vsJZYs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-359-HeENdz2pNYeyEv0PayXM4w-1; Thu, 30 May 2024 13:12:39 -0400 X-MC-Unique: HeENdz2pNYeyEv0PayXM4w-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 559F481227E; Thu, 30 May 2024 17:12:39 +0000 (UTC) Received: from fedora (unknown [10.45.224.55]) by smtp.corp.redhat.com (Postfix) with SMTP id F194C40C6EB7; Thu, 30 May 2024 17:12:37 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 30 May 2024 13:12:39 -0400 (EDT) Date: Thu, 30 May 2024 13:12:36 -0400 From: Oleg Nesterov To: Frederic Weisbecker Cc: Thomas Gleixner , Anna-Maria Behnsen , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tick: shift tick_nohz_switch_to_nohz() from tick_check_oneshot_change() to hrtimer_run_queues() Message-ID: References: <20240530124203.GA26990@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 On 05/30, Frederic Weisbecker wrote: > > > +extern int tick_check_oneshot_change(void); > > +extern void tick_nohz_switch_to_nohz(void); > > tick_nohz_switch_to_nohz() is only built with CONFIG_NO_HZ_COMMON > > You will have a build issue with CONFIG_HIGH_RES_TIMER && !CONFIG_NO_HZ_COMMON Hmm. I naively thought that a dummy definition below should be enough... Thanks! I'll recheck and reply on Saturday. Oleg. > > #else /* !CONFIG_TICK_ONESHOT: */ > > static inline > > @@ -124,7 +125,8 @@ static inline void tick_oneshot_notify(void) { } > > static inline bool tick_oneshot_possible(void) { return false; } > > static inline int tick_oneshot_mode_active(void) { return 0; } > > static inline void tick_clock_notify(void) { } > > -static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } > > +static inline int tick_check_oneshot_change(void) { return 0; } > > +static inline void tick_nohz_switch_to_nohz(void) { } > > #endif /* !CONFIG_TICK_ONESHOT */ >