Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3874597pxu; Mon, 12 Oct 2020 03:42:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+YN92ycsWOFdlYFT38Qp5DAu/JwCnjjDu/XvdWoU4CVgHSJEZtHy72C6Ncy51VYo/vymS X-Received: by 2002:aa7:c5c4:: with SMTP id h4mr13739174eds.379.1602499348344; Mon, 12 Oct 2020 03:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602499348; cv=none; d=google.com; s=arc-20160816; b=L7DWrKkqpsnI+dbVgb0EapFp3R0cALQzCmQLLO1AtU/MHddmYTIr0NW+PalUOhnptM sx3U4kLv3WvIO1GkzhmURd4dxaUo2bevDdxv4m6kYsQ7KnylVD3kM6IF3TjuwN1yVOtY qGqCrRnzdw4kwVNe8Sc0R7rwei/Iig/8GP2ZQYQo3PVZ1a5sCyRCCSzOaTHDI7Z3dnrB +JInbU92IUt3erWnSN+/YCftiDapyiA7xGj+MZzVWsJXdptXISywpHUDA/P3fx6VXLpC shJ6JwoB1L9lfPWgxKdEVZkWZkWrLS7iFU3JRshdPTaiI27XWEMlgtKFhOge6mWD7RDg MJ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references; bh=ZFeO0ZEOQlIQtWI4n/NxlbZCc932aKcLYGarF634zOs=; b=v5JOACXTIXGJPf8HIiN2u/GTUBQ4Lvc+su2/hAJakmJvoG+s3fDcn0v7nCeLfdHbxp 2kCVO4Veu5fBtJbk+zoxd+a8f2joSnGPY8pIQBskFf1AoiFttfiAcOT6sPCJVhfoH2Ca td8+wYYsOqVPO/J4yMIawTk6TLLcbVyck/y8oylZjKWgqFDFO9ROeejO95wy3WiUOKfp mIulfg2b/DSVZaQvdr69FIz8jl3yBI2DtUrB6LuWKNj7hV6fYasBoNr5en4WxN6h3V72 8TJpV7XAvpxSwxgTj18460XeVMDda9DdN2/nt9gJzQGShRkVmCeBVkNAdWmJgLo6rMBf 9p9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si11547119ejb.740.2020.10.12.03.42.05; Mon, 12 Oct 2020 03:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387646AbgJLKkV (ORCPT + 99 others); Mon, 12 Oct 2020 06:40:21 -0400 Received: from foss.arm.com ([217.140.110.172]:36532 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387522AbgJLKkU (ORCPT ); Mon, 12 Oct 2020 06:40:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 19BB531B; Mon, 12 Oct 2020 03:40:20 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 758493F719; Mon, 12 Oct 2020 03:40:18 -0700 (PDT) References: <20201012053910.97010-1-juri.lelli@redhat.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Juri Lelli Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, bristot@redhat.com, patrick.bellasi@matbug.net, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, chris.redpath@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de Subject: Re: [PATCH] sched/features: Fix !CONFIG_JUMP_LABEL case In-reply-to: <20201012053910.97010-1-juri.lelli@redhat.com> Date: Mon, 12 Oct 2020 11:40:10 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12/10/20 06:39, Juri Lelli wrote: > Commit 765cc3a4b224e ("sched/core: Optimize sched_feat() for > !CONFIG_SCHED_DEBUG builds") made sched features static for > !CONFIG_SCHED_DEBUG configurations, but overlooked the CONFIG_ > SCHED_DEBUG enabled and !HAVE_JUMP_LABEL cases. For the latter, echoing > changes to /sys/kernel/debug/sched_features has the nasty effect of > effectively changing what sched_features reports, but without actually > changing the scheduler behaviour (since different translation units get > different sysctl_sched_features). > > Fix CONFIG_SCHED_DEBUG and !HAVE_JUMP_LABEL configurations by properly > restructuring ifdefs. > That should be CONFIG_JUMP_LABEL, no? The HAVE stuff should've died with e9666d10a567 ("jump_label: move 'asm goto' support test to Kconfig") > Fixes: 765cc3a4b224e ("sched/core: Optimize sched_feat() for !CONFIG_SCHED_DEBUG builds") > Co-developed-by: Daniel Bristot de Oliveira > Signed-off-by: Daniel Bristot de Oliveira > Signed-off-by: Juri Lelli With the aforementioned replacement (changelog AND diff): Reviewed-by: Valentin Schneider