Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2488367rdb; Wed, 21 Feb 2024 09:05:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWko3l0bTk6k7Zac27HKMTSstrHQG+VQvfpnqx3y2uujbw0QYCebtGy9OgasMFx5I8rQbcPm5jIbHljeciA2auYd68sLmQNfsH9QBguBA== X-Google-Smtp-Source: AGHT+IGaGR3IHotvz/dEA88WXqNyvbTbB2iojFgcSuf/1zz4djYtcylY9Ese0zj1T7PJ1Q6p4jZR X-Received: by 2002:a05:6512:159a:b0:512:a8bd:4bed with SMTP id bp26-20020a056512159a00b00512a8bd4bedmr9802901lfb.10.1708535116703; Wed, 21 Feb 2024 09:05:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708535116; cv=pass; d=google.com; s=arc-20160816; b=xQF2nSf6pWGpuxeKzAKAisEC9cpAuhjEMirKP4JAvSDaeGoAav0uj3JS0AbJ/ger+F E6IJiqFWq7jAxvw5/waVRm8IK+Evx2GMv9WVLlZzf9wuAPDMf7eY9/0rNDowg6XYUiqv Z3K0pA+j1WilPEjvnDENFccFRqHfqFSzvTayXCWGU6L6rYrZuxgIVpBDltHnTVJUAKc5 sM6/MFERs7NH4aiY6kdOhybo21IPBXn/p8s4cVKMQMevHghRfD77JntLHRLAflXWh7Vr 7uOEzwoQcu83Rd3UbSatoBqp0FOb3BNBmPOgS09+w3nLhGpddp93FuM/PNXcyUmJhy/U +99Q== 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=kby4gEwuJMAp1Ov6kJ/hMBEc+9lSUMNWBq74TN3AABU=; fh=vC6hqP2dYpDL5D+BDXtTpiPLC5v5/Zl32aPP3Z/AnIc=; b=unq0DiFUgsJsjSubp6c1rrnzbAIydN926ooERQfV3EMFYZbykNDrnnP4OVrQEXtkyJ EonTUFrXw0+Gdzn/ivtJtxxvYxOZBJzaNFK+iLhSlO5z0Lx7ORmy3hLpfI2nnN1iP5wQ 3CUBsvT94RIlTunA+KZBb+OsDhvKMfHc1ixDnUURZEe+7PGgvLLjgpdNd7AnXh/Y9uSB 2YuDrLymuiqBfWxbjYYKmBH+SDOJsPjP7MB4q3AZK3zY9YaARyRz9ve88sklLN6jCsg+ 1bSrIKuBrp1wPsMMG7/7WAoMEwTTUpd37AfQqs82e0DX4DUlZeD8BzAjqucj/STlZ8kA pzSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=P+Qs26aP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-75160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ka19-20020a170907991300b00a3e7a8db720si3299412ejc.279.2024.02.21.09.05.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 09:05:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=P+Qs26aP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-75160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75160-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 70E281F24A2B for ; Wed, 21 Feb 2024 17:05:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29BE583A09; Wed, 21 Feb 2024 17:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="P+Qs26aP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nAYtU9cr" 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 E36897FBDC for ; Wed, 21 Feb 2024 17:05:09 +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=1708535111; cv=none; b=rgY+5YGr4l35/fry5LG5XfLuCY0XK986R29Ab4bNKHifIkPilM/biSjscr31Zg/Fcql8y9TdsdZNMwXhDNEjw2VZ109OhhAIfjEw29nKJumG22KP2JHKkUGCgBGQvF8uTYNqevPHDTjv2BF3dk25/N5pYlXeVvFzlurrSQKv2MA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708535111; c=relaxed/simple; bh=x24PyqKUc1hsMPtepg2CFDTZ6CtjMH3YwJ5m1aqgwac=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Xe91+AAXEtgx1bo9ksSU6efHLswviH+cQ0Fo2weZw2C3vIDRWBTplLOqSw9R11KaBk3cHusV1uz0Jn4gVgiCYOB+3MiHueV8esIHfgf9PMpJfTah8x/3fLYlKMAZYS1w6QuEGGREeoHeY+8XWvs0FRV8XwsFcePfCRNNEJT5gcg= 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=P+Qs26aP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nAYtU9cr; 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=1708535107; 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=kby4gEwuJMAp1Ov6kJ/hMBEc+9lSUMNWBq74TN3AABU=; b=P+Qs26aPpN/G97iS7l9TsaLTVoiXW23FZB5RqH39WNB1b7HlOkRZuKhMNnOJ2fcO6b0ay/ KJp4p9dZO+l2o2LNDS0yg4wQC7EdCO5hbN8nFIdZIbYANy5Mv62GvloPblF1lyNuWErmr3 QOWPcn5MuE+U/E9NiPrkMwM5SU2QVfraQBDFAARTBCV4OJr2JfG7+GtLtC8uOq77JTCSj9 oaPTl8PP8/+JSdxQTQyzGMhMmI8WYIiBjJ4Jg/TpD7KbtZ/ZCMYtQ5ud8wHyA2SqHiBh0b TQKuePD4Dj1C8KipK62va+jDO339oaQpg70YwsMkn1yTfxKKR9p4zHGaC7fcWg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708535107; 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=kby4gEwuJMAp1Ov6kJ/hMBEc+9lSUMNWBq74TN3AABU=; b=nAYtU9crsJ2owVQDCREqCD37iAgxugWmOOqsGJ27JnpxHIiUjyFMdawvitjCs1e1TR20xd kTJB8XMauhFcesCA== To: Ankur Arora Cc: 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, mark.rutland@arm.com, 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, Ankur Arora Subject: Re: [PATCH 02/30] thread_info: selector for TIF_NEED_RESCHED[_LAZY] In-Reply-To: <87ttm2hhsl.fsf@oracle.com> References: <20240213055554.1802415-1-ankur.a.arora@oracle.com> <20240213055554.1802415-3-ankur.a.arora@oracle.com> <871q98a3h2.ffs@tglx> <87ttm2hhsl.fsf@oracle.com> Date: Wed, 21 Feb 2024 18:05:07 +0100 Message-ID: <878r3dhhoc.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:50, Ankur Arora wrote: > How about, something like this? > > +typedef enum { > + RESCHED_NOW = 0, > + RESCHED_LAZY = 1, > +} resched_t; > > Still, not ideal. But I think it's an improvement over those two. Fine with me.