Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp646116ybz; Wed, 22 Apr 2020 05:24:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJIKjbjD7nit8+F4dIOizMf4fEs04uTKGHx0XRfaejaUyTSu3kl7zLV468z16qBMLwj1oJX X-Received: by 2002:a17:906:af6f:: with SMTP id os15mr26276074ejb.78.1587558299095; Wed, 22 Apr 2020 05:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587558299; cv=none; d=google.com; s=arc-20160816; b=XGtSlW4XhXvBGBmgr8aJz4qd5fuOlvqca6vN4XBRh18YkaCrl39rPee+OcdJgEv9Gq fL/i5HLIyfZWl1u8ejaEG/auoZGxXQzfDK8qx1F8GvMfnOm+83DBbKMJrvyeYQ33tqlf afatymP4UbiDSJY6PRoiyvNTP32vYdxryw41BLSU8Z9O8R37iScEo3Lica5n0hcTRSco texMq2ie+KtFRHVY81VcADVZGvPoMEfjm++nnLHjUwnw0BGfUELKqkrep9GtsH7PNN1d wlr08E3t5PeuzM9GZbtiz/Z5yFebe5MC2W9V5dBfyOTHhM7YZp+xIIRNZPXCPUnL/KD3 Pmww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id:dkim-signature; bh=MALwg3l9cgtJk6A3vhjWRzuMBe1NnH2qFD2RDhnqbEo=; b=nzIg4aWgUAG1ta3ZgPmGvf0OxiejQm1fAroOZAq8KTTSuxC0bOgC7akACcoLA6PKKq FhHhfVXM7QdN1+rCOjpVK/Emf7s2htN0QdKoXDZS++1e22/UkRFWx/rjANoAEV1Qeqdk NJrNaZTf61bbdb5XdZClTjNinjFosF2z4Of3CHgXGJHG3jyhVhYx6hF+zDp0+wD5dKQi yvuRIkKpQ5hNd8Kn3DlgJ5XymseqoPP4qhHtkKDDPds+IvUKgQLAc0djCmHUSTOnkhW1 I/CUK9QpxuJXw1rHe0nvEzRqKehaCH0/jvL+z5/NLMJP5c0e1na53JLtAGLvU+Kvn0NK E40g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=kSCZ8NGZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw2si3376226ejb.322.2020.04.22.05.24.36; Wed, 22 Apr 2020 05:24:59 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=kSCZ8NGZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726245AbgDVLcS (ORCPT + 99 others); Wed, 22 Apr 2020 07:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725808AbgDVLcS (ORCPT ); Wed, 22 Apr 2020 07:32:18 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CB89C03C1A8 for ; Wed, 22 Apr 2020 04:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-Id:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=MALwg3l9cgtJk6A3vhjWRzuMBe1NnH2qFD2RDhnqbEo=; b=kSCZ8NGZv5KMKdoo3/XXr09oAc JdOEuXpQTUx/NoTou8J5DnTwJjscB2O/m2p42Qj31FphBcbnyOCpISUC9NgxQKCeasha6Par/2d/f ydPyfx9YvE3SjbsMY4JPzvdj99/zTSGIgK1QvTEJtS9GlePsgWmWgMpdOEe7ZysJvV6xroiLbT51f W2KwaDJ/aA6B6XR0k+/IRPmzihP0CbQe6aTwLeFJZYzwZyCkTdJR3ndRMYVcazWmRs1c61tNYTlnZ 8ZzrdIA3YIGZcU6B3eMs008ln7FMblwkMLDKRDrvpGQFwF9A631mVdiVodqdvgYHemliQYQNqp6ZY WJLiqRTQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jRDYw-0006qm-Br; Wed, 22 Apr 2020 11:29:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id DFEE9307479; Wed, 22 Apr 2020 13:29:02 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id B708D20195236; Wed, 22 Apr 2020 13:29:02 +0200 (CEST) Message-Id: <20200422112831.339113081@infradead.org> User-Agent: quilt/0.65 Date: Wed, 22 Apr 2020 13:27:21 +0200 From: Peter Zijlstra To: mingo@kernel.org, linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, rostedt@goodmis.org, qais.yousef@arm.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, peterz@infradead.org, nico@fluxnic.net, rmk+kernel@arm.linux.org.uk Subject: [PATCH 02/23] sched,bL_switcher: Convert to sched_set_fifo*() References: <20200422112719.826676174@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Because SCHED_FIFO is a broken scheduler model (see previous patches) take away the priority field, the kernel can't possibly make an informed decision. In this case, use fifo_low, because it only cares about being above SCHED_NORMAL. Effectively no change in behaviour. Cc: nico@fluxnic.net Cc: rmk+kernel@arm.linux.org.uk Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Ingo Molnar --- arch/arm/common/bL_switcher.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/arm/common/bL_switcher.c +++ b/arch/arm/common/bL_switcher.c @@ -270,12 +270,11 @@ static struct bL_thread bL_threads[NR_CP static int bL_switcher_thread(void *arg) { struct bL_thread *t = arg; - struct sched_param param = { .sched_priority = 1 }; int cluster; bL_switch_completion_handler completer; void *completer_cookie; - sched_setscheduler_nocheck(current, SCHED_FIFO, ¶m); + sched_set_fifo_low(current); complete(&t->started); do {