Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1197093rdb; Mon, 19 Feb 2024 07:17:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZOTOEKHosRCpSJXN+fFxfhNqBl5jhzcoCVWcMMED+Y2cr0jbeRUUibCv/D3bmGyd4sn3Fa+S4cMvSFoYKRiBuYKriH+j1nv3FITqOhw== X-Google-Smtp-Source: AGHT+IHQTZu/DPJi0P9SHxJYRkKw7QP9ZnAyspTOJLOKmx4HLrvShlpSb4djuGYOMvsyUgAB2BZ5 X-Received: by 2002:a17:906:35cf:b0:a3e:b7f6:f173 with SMTP id p15-20020a17090635cf00b00a3eb7f6f173mr1340843ejb.74.1708355860833; Mon, 19 Feb 2024 07:17:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708355860; cv=pass; d=google.com; s=arc-20160816; b=nYpXlmKcAl92d2HIrni37U5xhmBmNS3Qy/fQw+HLhs9JuImHHo/HIszugY6AtcWig9 XbWb2kUg3Gr4xkrdj3HijQvJU/6gVUIbfln9asp01bruw31Xt+Mcf+WpZtyI5ck8mfgS mGWU4FTaD8nqE3ZXfOKiSqbnZQT3arHL6SIVqKlVCLCYVsb+VVVEO4tBtzi1/KP7gchy WZWooRO42DsMPmTL4bZfqYNex9On9tvRl78kGNF5DcV6QrY81aLVCJAIhVcQ/E+Z+imU 89BMkElRFvKAsZhbXNplNrjGy0B3chBzYDeAjmjUGt3EU5IiKIKJ4jRlt/R1boUIdkn4 2c5Q== 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=6Q50iBSV6AQDahVw2RIwxtLrTecKxoffvk3tSJzt6UA=; fh=Z44qi5zzdje67VzrYPiE3xDkGEh0paLnIFFFj+L9fz0=; b=ZFiV1yGIQeX71+iJQ6kZljiCenHGk3Jn+9Gy8ZAZV8vm3X27DRkv9pGSpSVtxfb6SV wLJ9UpgwqUk567Alf2Zg3v1rr26qaYaop4hwi/5DZTLil8kod56VbkgT1HPM4WMZ2X4y 43HLzrRNnrkVcjfKSA9mogSciwdXnlduu0WWGoK4QCw2ZWD714T4lJm4R4/2N4g+LIyq TduOCBReLZanfALmMUvaKjvkJUPsID6yeRFfLMed09o/D7Zx8osB1uI/GXn5mh0e4Ehk CaPp93FQl2QOWLwfxK0/U5L4+nesdXsLFRGDZ88qjXCRauQucOq0Iomn1tDg4DL4x1gf w/Rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qFGrOB0d; 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-71571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71571-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. [147.75.80.249]) by mx.google.com with ESMTPS id o8-20020a17090608c800b00a3e0dc734e4si2466636eje.790.2024.02.19.07.17.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 07:17:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qFGrOB0d; 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-71571-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71571-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 0B09C1F24BF3 for ; Mon, 19 Feb 2024 15:17:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B87D383A2; Mon, 19 Feb 2024 15:17:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qFGrOB0d"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2fzw0s8q" 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 CE10438384 for ; Mon, 19 Feb 2024 15:16:59 +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=1708355821; cv=none; b=AalPaMbe93kUuF0CRP54JQ7KFw/eSthl9kQJ9SR+EzeNgWyr0DFCcwaNE1xSnUDj+iUL91hW6Ib0ZOsxTVQWoc6Y052/cZSoNBHimwEWuSfQ3xUk6CQRyy274ixuMWwEu1ZdCanbbGWA9pWe/QMmXlL6OYWotxeqUwll07n1J5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708355821; c=relaxed/simple; bh=iSBI92xbcFb8YtIaxCAj8/dQGVMdfEd5o75QnLCPRQc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=msCbMdPCseYu8CSU0s7MpdJX2gJ15Jkz7HRgwdpMdl04b/cMkY5021D99yF2/ry2btdASFxJCcUgKCCkpFYE+YCWfewvRMYuj3J2pxOlmTQFDjb4lhOkTwftXGOxz7AOYqMZtFqFP7p5EB7yUWaTWBKsLQhnR+r0jztYPj7Q6y0= 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=qFGrOB0d; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2fzw0s8q; 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=1708355817; 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=6Q50iBSV6AQDahVw2RIwxtLrTecKxoffvk3tSJzt6UA=; b=qFGrOB0dXNjLITtaPHezRASS08WCvYV8XqwrJ/AbG5iNBmN+V+aV63RY6K4//AZvNEVVjV fqde0O8jlaeRpTeR5YQWD9uuwrHLEi/7SfAvbZH4y1uLqywpmSpgGTELgsOmYcjRvupXu9 j//sSNQCW3/27U503HEP0ixehGdDGEHyeTabYftNxf8B/n+nOgSQqUqAjIdNXrPz/DLud9 eRbw7qgKCW2zJ3WkaqlTMZh8LTwPPxpni1WepDtNcoWx4pvaQjeRoKKtQOzh/SzwkcHrBe 4iIMjA3X7n7oor14TvSTsBK3/WNbIF/wUletmywVqalIxAjV81zmL0YaI9xt9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708355817; 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=6Q50iBSV6AQDahVw2RIwxtLrTecKxoffvk3tSJzt6UA=; b=2fzw0s8qwDXIrwZjpi8r4pchY0RxA0Q4KA9AWiBvpQv8XNlFU8gRH/kOvAuspKniRp3oQo 4GM4lJ/Mrq6RftBg== To: Ankur Arora , linux-kernel@vger.kernel.org Cc: 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: <20240213055554.1802415-3-ankur.a.arora@oracle.com> References: <20240213055554.1802415-1-ankur.a.arora@oracle.com> <20240213055554.1802415-3-ankur.a.arora@oracle.com> Date: Mon, 19 Feb 2024 16:16:57 +0100 Message-ID: <871q98a3h2.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 Mon, Feb 12 2024 at 21:55, Ankur Arora wrote: > > +#define TIF_NEED_RESCHED_LAZY_OFFSET (TIF_NEED_RESCHED_LAZY - TIF_NEED_RESCHED) > + > +typedef enum { > + NR_now = 0, > + NR_lazy = 1, Just a nitpick. Please don't camel case the constant. Can you please write out NEED_RESCHED_* as NR is generally associated with number? Thanks, tglx