Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2100626ybl; Thu, 19 Dec 2019 08:06:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzAupso1dMPtxnXHKogkbXiXMqgj0PTacPS6ODh9dd29XRNvM52HPZDjBztEzjPJW4qeV0c X-Received: by 2002:a9d:62c7:: with SMTP id z7mr4311173otk.189.1576771612870; Thu, 19 Dec 2019 08:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576771612; cv=none; d=google.com; s=arc-20160816; b=gT9iQairpmt/asl+jPhttVZR8k/2J41cFQ3omOL+Zm9vJScyClmTjf0aWQS7mT28eM Anyeml9kDhV97aVNmcYprbX5WvDJJz22LVqQlUamG0nn8Hef0q3pUkJzMHzyZk+hAzvc RkjoE5n423xDeAc3bdXObq/YxSnhoASVIDdDqRjtbKbX7OcAFyWYALDlwFgMOfkyOk4u RQAn2ZaVoxlLPeY9/uOXq0Uj2YAL7QQLjHmmZMqHMf303NzmOXthbV9FfCAMDuwnS2+1 /4Fcm3R/F5vTpluPdLhAL4HgkHwObO5FIekcs2V6Aabm/p9EkONiUqtHMOPj3fDNW55O b0Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=YKBJzVxRqWGC+Z6uTp0SnwIU/UsU6ljQxtK6KpvXoVc=; b=wmAvJXSE4JxlM9kteBoieAPiIgDcMcV8A3Ai8d19kdbVQTpS3sxSg+kWtn+jU0Edba 1Y0UdESv8TxiaNvBg4psd2TZamg1eqSMx1QUl6ec+QyYswxGjzvRUR97t9eEike7iIwO f2E7qp1r6E+vbw+3wAA1VSrGKUmV3aHdVQ+/8eanXqBDwxjLSaG15un869Tjx2ZxRHSc QzlXqkIbIHh4yhkwZZFc79SJS4t/8Y2j4t9rzm9boEp3rknaSKB4R3mPArIchYJV4byr jxKeFp6Y4zUeh6K1j9D7DYJIy/3OdALD92my9e/zROjfUg3qcqnlG93R3bWDAgmf7/3O o5gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si3375941otq.250.2019.12.19.08.06.32; Thu, 19 Dec 2019 08:06:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfLSQFV (ORCPT + 99 others); Thu, 19 Dec 2019 11:05:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:47436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbfLSQFV (ORCPT ); Thu, 19 Dec 2019 11:05:21 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C330324650; Thu, 19 Dec 2019 16:05:19 +0000 (UTC) Date: Thu, 19 Dec 2019 11:05:17 -0500 From: Steven Rostedt To: Kirill Tkhai Cc: Peter Zijlstra , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] sched: Micro optimization in pick_next_task() and in check_preempt_curr() Message-ID: <20191219110517.0dbdb211@gandalf.local.home> In-Reply-To: <44c95c18-7593-f3e7-f710-a7d424af7442@virtuozzo.com> References: <157675913272.349305.8936736338884044103.stgit@localhost.localdomain> <20191219131242.GK2827@hirez.programming.kicks-ass.net> <20191219140252.GS2871@hirez.programming.kicks-ass.net> <20191219094330.0e44c748@gandalf.local.home> <11d755e9-e4f8-dd9e-30b0-45aebe260b2f@virtuozzo.com> <20191219095941.2eebed84@gandalf.local.home> <44c95c18-7593-f3e7-f710-a7d424af7442@virtuozzo.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Dec 2019 18:20:58 +0300 Kirill Tkhai wrote: > diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h > index e00f41aa8ec4..ff12a422ff19 100644 > --- a/include/asm-generic/vmlinux.lds.h > +++ b/include/asm-generic/vmlinux.lds.h > @@ -108,6 +108,13 @@ > #define SBSS_MAIN .sbss > #endif I would also add a comment here: /* * The order of the sched class addresses are important, as they are * used to determine the order of the priority of each sched class in * relation to each other. */ > > +#define SCHED_DATA \ > + *(__idle_sched_class) \ > + *(__fair_sched_class) \ > + *(__rt_sched_class) \ > + *(__dl_sched_class) \ > + *(__stop_sched_class) > + > /* > * Align to a 32 byte boundary equal to the > * alignment gcc 4.5 uses for a struct > @@ -308,6 +315,7 @@ > #define DATA_DATA \ > *(.xiptext) \ > *(DATA_MAIN) \ > + SCHED_DATA \ > *(.ref.data) \ > *(.data..shared_aligned) /* percpu related */ \ > MEM_KEEP(init.data*) \