Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2490788rdb; Wed, 21 Feb 2024 09:08:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWVl0Myjk4OnIl5jX3q4lCjpBYOjLD+zoagz1Yl8s5MJXm6+DRD3QlR0S/2MQnhtVUuEXoQc3R+hoVlLFeEecNyJ1W+HmUcfXvvoVToIA== X-Google-Smtp-Source: AGHT+IFJs4kkX6WvhFSRNR2/ezvRwCWrHdUX4JNEkifQ3v3XCjImwiwEMdqU7MDVYe/SgoJ91xqk X-Received: by 2002:a05:622a:164f:b0:42c:5027:f34d with SMTP id y15-20020a05622a164f00b0042c5027f34dmr25327812qtj.66.1708535291970; Wed, 21 Feb 2024 09:08:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708535291; cv=pass; d=google.com; s=arc-20160816; b=CQdO9vyuVHnIC1XRVM+BzH1DAVTlsfthR1XJMnVBMAIj0RKMcddghFyRvFUfSI2KFf xlWcHDS/DQgzgPfn+GwElqrAssHZ3xcoAywHMwPVAwxUy4q02mYfL56mdSq8AYJ3lBLV n7MpPQm/TBuMB3J30kKkC4J7JTLpOtg/Rzt1jQHzjDrYhYh6sbWWC6YWUCywZbfAa9+m EQXghPoJ0Grekdayi2OvAzxkypIdukW8c4zVb8cyQ07Me0d7elkqwkrfcOVyOSZSbdyB U1nx/asj3iS1AQdsDQeZpzVlZkdX1yGi3tz7L5MN+oS8ZVCMlol/uZ4r0Cri0WcjxBfm AtBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=wZsMDy/jG5/vdDx0X4qnPqXIs7mqMEGPe35pNUZZ6i0=; fh=yvHmr5RmxpMFhS9iK0hRGWD/S8O0+/1weGKyOIIV/DE=; b=wD6h+nqbNvl2/Mwa244Hft950RkUFSxIBW6b8fmQ8HjzW3vptGIJjZ0Fo1GKycbLKr qjHl49FDI88IslVhDIggmXsaz07wqssRfQnB29fR3CF99JXhfu6q+OfNWY0dBZY0rLyC lKp0t5f/VVhkumcYdZ27C2IpvETAZpVz2Ia1oRDLpyJyhzYt0Tv98KIj/p81U1/tKh9I fV4ecVNK/AOUSzak12td7RQh4aBT7+gB9ytavOWxjWJGc2p0rLpxUDqWrlNoaudk4jJA jARDmOsYMO8PVd3hUzJ3UfehfioliemhoCWvek4iQZ/DYUP5TqljDWyoKW5Bna+9eH+S XR1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="AfHVny/o"; dkim=neutral (no key) header.i=@linutronix.de; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y16-20020a05622a121000b0042c4f58fce4si12582523qtx.48.2024.02.21.09.08.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 09:08:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="AfHVny/o"; dkim=neutral (no key) header.i=@linutronix.de; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B53971C227CA for ; Wed, 21 Feb 2024 17:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B3A583CBA; Wed, 21 Feb 2024 17:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="AfHVny/o"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Pxzvz+ch" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 0181682D7B for ; Wed, 21 Feb 2024 17:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708535273; cv=none; b=gaWeC9fGjeNkgCFRj7NBqyPkZhr/a/I7QhH7R/vZ69A61mqJ50IgEKKMi1vhswFJ08ZJDKfA0fLMxHoegrn6SMhxkZ7891qfLGUrZCumLrEBRPRYo9Ofw2itrzPydLM7mdxOXzo2ZIDtmSPrFW2bB62PcKFgVwZb5BKKOfgevtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708535273; c=relaxed/simple; bh=fckWMxHLvit0O87HGx/z25o2RsOGqnJm1n3h5O1gbSE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=jyq/MrBzAIJFubbnKkyZEZ55oiLLT9h3RLHN8wmsWIy/rkzE7DXihBNPvntYbH7hUzVxfc99/xQqmpJt1yR2Id11yDWBK3fx3YO1kq9PbqKCDMUJ7SqckQDLUTTG/3U0b8PUuMh34yboGzRgKHvmBgUsmVecQPi26wov/FLO1pk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=AfHVny/o; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Pxzvz+ch; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708535269; 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=wZsMDy/jG5/vdDx0X4qnPqXIs7mqMEGPe35pNUZZ6i0=; b=AfHVny/onjXAsWtmfUDoqPndvgWxRetZLd3EJex5XYd1EAFtRpusqxKNzpPXX6ZuHHkOBz fKNiE8gNoHuUoMrexkhd5mN8L8o9zW1C91U6539pgJjhXAoDl5I28iPYnRFIEAw9F4hd6H BRovGJxlux3gVyaUuSz2/gdngUjbOKd/CJRsdMYIz3qNxHQWhUJTYM85/l0aeB07OV7C6Z GK8vIBLPvN+EAGejfa4mEYSoj+O9H9lAMuIaXl0TalRDdPmT7UmFMaS0wfcFffdF+RRJI/ 12nH3h/UmCEvLrENBjijfreKQEV2omHQ01JI4AZqDMaQKNmh9vyaQarZP6EzRA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708535269; 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=wZsMDy/jG5/vdDx0X4qnPqXIs7mqMEGPe35pNUZZ6i0=; b=Pxzvz+chZw3vgn/qnWbDEOWXAebzZqoUN0vzCN2WR2iPi+v8L78eg2UTeelYbD6ELMwn6d YDXuc3bJoucVFzDg== To: Ankur Arora Cc: Mark Rutland , Ankur Arora , linux-kernel@vger.kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jpoimboe@kernel.org, jgross@suse.com, andrew.cooper3@citrix.com, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, rostedt@goodmis.org, David.Laight@aculab.com, richard@nod.at, mjguzik@gmail.com, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Arnd Bergmann , "Rafael J. Wysocki" Subject: Re: [PATCH 03/30] thread_info: tif_need_resched() now takes resched_t as param In-Reply-To: <877ciykc9v.fsf@oracle.com> References: <20240213055554.1802415-1-ankur.a.arora@oracle.com> <20240213055554.1802415-4-ankur.a.arora@oracle.com> <87v86k8opr.ffs@tglx> <877ciykc9v.fsf@oracle.com> Date: Wed, 21 Feb 2024 18:07:49 +0100 Message-ID: <875xyhhhju.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, Feb 20 2024 at 14:21, Ankur Arora wrote: > Thomas Gleixner writes: >>> static __always_inline bool tif_need_resched_lazy(void) >>> { >>> return IS_ENABLED(CONFIG_PREEMPT_AUTO) && >>> __tif_need_resched(TIF_NEED_RESCHED_LAZY); >>> } >> >> Yes please. > > As I wrote to Mark in the sibling subthread, I think exposing > the lazy variants outside of the scheduler isn't really needed. But having a proper wrapper inline in the scheduler code (local header) makes still a lot of sense. Thanks, tglx