Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp50637pxf; Wed, 24 Mar 2021 20:40:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx2GMHRYRvpWMoBhHCMZA80++XXEgEyykrBviDNkHQcVQTn/8TpTc/KzCHugsdUUY5FcCB X-Received: by 2002:a17:906:5295:: with SMTP id c21mr7109930ejm.67.1616643638103; Wed, 24 Mar 2021 20:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616643638; cv=none; d=google.com; s=arc-20160816; b=pQL78Zj+404b21pTg0TYF0f5NI7p1+A3Sd5F12uC7djjPl5H1AxeMXekGAfnFfJTTg 89kwZ5rIpGNUsrApos4EjWZ37MhT6zgx3fpyMYN93QX9bF5K0ZGbBYnx6j57MVHLpTsM JmONOavCCo7OBpmKSSza8YuS0dWEFNhJxrNbqS/bcadIfVR6zPVAs345smuW5WOuxxzG DVAv8Bl24eA6qONUqB18Ia5w0h/oHitCOp+T3WfZKAZE6unSUKnOGldtMSy4HANJwPvx zIXp609QsHXXAlSD543dkSYiA1POWBZ3kN6YEUNR0DIZEkfxv9l8Zt7i7fpP+O+YdMWp 1kAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lv3UurVlQJhS7u4wSNnZyaLnwGLNqkzWmNUq14Yzcn4=; b=rrTK1kPH2+rD1eAkSbVAxdFxFD8whTlfvHPcfFzQYginIwHc2mealHAk6SUQD3EjPA g/LwSPcPtaou4dD04qlIl1D6ZyHDxtoTzxRVdj6079eQ5NalCVg+v5v33FHVEi6dewQh DkRedBPn1Y7hwTio+969y8/xYPh8dqub9khO4SDE4m+itxne0hTFv6D2OWfuqplSXyzH ilmHyEel9X9GQPFxmTEqPRExmLgfoCQhqeyiw6UOb3abpmM8lwcEiPUXg6Jz9caEV5/s lzjTX9UpgLKZRdNkpS4fs5fzwMi9wMlX6ajZmTJcKFygZDPXXqt3Hk7aR4QT/azh2j/U UXHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=K+mSBcBO; 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 r6si3322073eda.292.2021.03.24.20.40.15; Wed, 24 Mar 2021 20:40:38 -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=@rasmusvillemoes.dk header.s=google header.b=K+mSBcBO; 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 S239367AbhCYApm (ORCPT + 99 others); Wed, 24 Mar 2021 20:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239360AbhCYApU (ORCPT ); Wed, 24 Mar 2021 20:45:20 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C020DC06174A for ; Wed, 24 Mar 2021 17:45:19 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id w3so164909ejc.4 for ; Wed, 24 Mar 2021 17:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lv3UurVlQJhS7u4wSNnZyaLnwGLNqkzWmNUq14Yzcn4=; b=K+mSBcBO/ruZLDzHAdcQt834WPzV3u6GfdjyMB5OtLVjXxby1fHu9aXkPDeMfaquC6 A8vPHX6smaCzk2M+gJwFlLBGile+EUBaNydd8Y0IokoiWOHFoN8/LWmSSBMFt5BdI4aA mph4qTMLDD2TlMXSyG/UrXEP8dmfMmMfY3MWU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lv3UurVlQJhS7u4wSNnZyaLnwGLNqkzWmNUq14Yzcn4=; b=qp6xloScigBqASfvNnKZGNmK8DJg+UiThVMaty/6NnXkDvnMicm3EilnTNqUCQALhk UvfCiADUEm+XuEsl4iJhK9K+NAc4XSzRgK3/V8pdxDZAbLbJnaguPKeRmIOAYLRWeolT eeBPYQjV2OMATBsDoLXTBuZB0DvQ2wDkQqgqK2pJz3ZxPlw0ZYmhjeZ0166lvragWNVD EUPmNWlXiQFXBhcfRVYtV80MNVJ+jld/vma7HR8uUDX2FB7cQWSfYNak17M2o09WKfJU DEX2gH4kUwYjqqbs8wFf4LkG5OwvhAmHQ84unosMzVLbw83trdQ8iZFcqnnm8+yIPXWi fRLA== X-Gm-Message-State: AOAM531QOsLQlaA7Y596djf/yHoQ6FbkcCe2rQAwaDGYDt6EkFKmzvUO McTHyIyLFjBFAWyiswhFW4dOYBdugOSIJe9f X-Received: by 2002:a17:907:162b:: with SMTP id hb43mr6645409ejc.41.1616633118535; Wed, 24 Mar 2021 17:45:18 -0700 (PDT) Received: from prevas-ravi.prevas.se ([80.208.71.248]) by smtp.gmail.com with ESMTPSA id jx22sm1657623ejc.105.2021.03.24.17.45.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 17:45:18 -0700 (PDT) From: Rasmus Villemoes To: Ingo Molnar , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes Subject: [PATCH 2/2] sched: use -EINVAL in sched_dynamic_mode Date: Thu, 25 Mar 2021 01:45:15 +0100 Message-Id: <20210325004515.531631-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210325004515.531631-1-linux@rasmusvillemoes.dk> References: <20210325004515.531631-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -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 --- 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 3959481261bb..5b29261668a6 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5378,7 +5378,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) -- 2.29.2