Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp284172pxf; Thu, 25 Mar 2021 04:10:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3tXY9I4eHnEYOR5O4q/o032pcQVNRRH3fstZRSXe0CT/GkMJXW1xEBfdeVjBZlZDtk9H+ X-Received: by 2002:a17:906:14d0:: with SMTP id y16mr8846312ejc.242.1616670633210; Thu, 25 Mar 2021 04:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616670633; cv=none; d=google.com; s=arc-20160816; b=IvjCmbhA1HB1mIdCLaMfIMDnl0GOMerGflmjADzMdxKN2v2P7rZ0O9h9x6ui64bH2u qkBZr3STha0NlrVsB/PKE3mhJe7fgBcNToYeU1aMQfGxp1UyoV9ICYjy90Cpm9YJ/skr nKOxFsZy+ErBTxjhz9+5Ago3NN7gtL6p3t3QGnevtfjH1LSlFYOrhSJuW6dKZD77qRMQ njt6k8EVvUpPadsRAC+gM0dcRGUNbCRBVmblQXrbd6ITvR3ruNUO4L7OcVqPZQn7w4tP qUPPWiFSmPjzaiTj0hbDbBiCjf1QinCettbQXwKeGfFqQyfJkPr/pJogcd0EwtYASDye gmFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=dd2nkwFdsLB6eLMF+RCYw5ivYZH6ZQ2d2Ubsi/FjZvI=; b=TOZC97hj91t0qp95mWkWxmOZQinpIQKkAtashM4RLqfDzzxjg+CyvI+4e7zwrVB8Xv 3YBYCkjwekfNUVxdV93BQ2BB8oaVeBGxSpi09WSqClg66iv/TWpzCwFoXNlvVrfazFie sZmiMaiGzTATvWXeCXZQYxto12Q7r0kawj7vfxSU2SLa41tg+jOHekw0L1hFeSGfgssd EemjppCCno480x4AmwrHuYC2XpaqkJR7ZV3cmCcr5hpxrkKYDtJiVp2sFb+l+u7npwoR yMYusyAf6qmMaROP7IlaKIXRjP9N8F8A4tk+VhvaHjk97AZecgpc0Sla+3OO9KtqSN8v 457g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4ZAfPrzG; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si4140225ejf.53.2021.03.25.04.10.10; Thu, 25 Mar 2021 04:10:33 -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=pass header.i=@linutronix.de header.s=2020 header.b=4ZAfPrzG; dkim=neutral (no key) header.i=@linutronix.de; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230231AbhCYLJT (ORCPT + 99 others); Thu, 25 Mar 2021 07:09:19 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47056 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhCYLIk (ORCPT ); Thu, 25 Mar 2021 07:08:40 -0400 Date: Thu, 25 Mar 2021 11:08:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1616670518; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dd2nkwFdsLB6eLMF+RCYw5ivYZH6ZQ2d2Ubsi/FjZvI=; b=4ZAfPrzGhg2c8rR/6ir1vkGYyWBb25BydqX+e26LGvEA+cRy7ZbOxRhJyKZ1nccXMn79SN 4Zv2clJbh9GK6pTWm+DtrL9O0XWtTiMiBNDkXbCa4NmQYD2F7eGNwo0CIt8AatfUdaraUD to/p/N+j28PwyA57qwbauFXqe6XqdcDad0qkDK58Y35aDq/QrUyQUHm61e+mWUWl7Zm0QH SMhG01pPP14l0yyUfuII4nOlQBtnGZ40hEkaRrJBLN2gyNGA8NXRyGNQHXsJuZBAwbtXgU B3FWhgWYvXy6LnE0RXaRROuhZ0058a/6tKS8zCdq3pjmiqHj73lueUzAnLANWw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1616670518; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dd2nkwFdsLB6eLMF+RCYw5ivYZH6ZQ2d2Ubsi/FjZvI=; b=TKAxbSqHIkkI9g6QkLeKvJ6BfbrxbQCDjXw/hmZK081wNyo3cz3fLpdjxbq9Lx9CDvWF00 T8ZTc+X8G/DVLfCg== From: "tip-bot2 for Rasmus Villemoes" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/core: Use -EINVAL in sched_dynamic_mode() Cc: Rasmus Villemoes , Ingo Molnar , Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210325004515.531631-2-linux@rasmusvillemoes.dk> References: <20210325004515.531631-2-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Message-ID: <161667051768.398.4185188604723886727.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e Gitweb: https://git.kernel.org/tip/c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e Author: Rasmus Villemoes AuthorDate: Thu, 25 Mar 2021 01:45:15 +01:00 Committer: Ingo Molnar CommitterDate: Thu, 25 Mar 2021 11:39:13 +01:00 sched/core: Use -EINVAL in sched_dynamic_mode() -1 is -EPERM which is a somewhat odd error to return from sched_dynamic_write(). No other callers care about which negative value is used. Signed-off-by: Rasmus Villemoes Signed-off-by: Ingo Molnar Acked-by: Peter Zijlstra Link: https://lore.kernel.org/r/20210325004515.531631-2-linux@rasmusvillemoes.dk --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 1fe9d3f..95bd6ab 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5384,7 +5384,7 @@ static int sched_dynamic_mode(const char *str) if (!strcmp(str, "full")) return preempt_dynamic_full; - return -1; + return -EINVAL; } static void sched_dynamic_update(int mode)