Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp599682pxj; Thu, 10 Jun 2021 08:16:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYS2/aOkOqWplKGdG0BMEtL/6RdTwvpIhN5JRdFwN31Dnh0G0kL41SYNhKDxqB+IkfF4Es X-Received: by 2002:a50:ee84:: with SMTP id f4mr5261958edr.97.1623338163786; Thu, 10 Jun 2021 08:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623338163; cv=none; d=google.com; s=arc-20160816; b=Dv0PtcwHyV1bl5EArRMQYuszJglSBQEzMuBlcaxaguVRxyiEUH+L0EOZJVIIaJdNDm buTufMLQqQxU0CL0pn5FrpsEoEKuVriCPijoskk95/EM96ha3FlHtQRl2OvAQejQRz/X trGMG20DtaKPjRwVMnpY02xeelQxypBwvmgut3WXb5cvopQW/25D+cR2KuubztzWnwcR 46iZIezZFaCeWA9aj3rPWcbGU4S/NWX3/jV1T9IzcsH4EoPpmplRY27efQWTPZUsJeWN J79zY7l7cGegNVWeMbQp4gGRsuVE/KSd/5Ewte9zoohrtDDrqCm8n4PkyOddw5rZg/aX QpLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=50MN4xWbgGEuj61j/i1zYF3JQQTtZRIXYmf3w+jlERk=; b=hCmojArEcLEObH/5y9XKM6xKPOrOUPLm44KYoiCY0rVaoLs5/DEmnHMwDCcahbjVK8 ojKjX3YPC4GwQPHlpHN6QBl9YVXLTu0feXyy9DNppHpm2o+iKfxAvHGNOprCJfRm3JmD 8ukz5HpBIqfNdMWHSdDaLkG6slbqxPV9FNdNtb9qPHe5+VvZ8UY6dsc42RCChAd2CBoO w4O3zSa/r3bCghZmG656CHialImv2yvC5dfD2kj/ylFcMvUds3mVK2Ls7f4DSQ6e54B2 VByhBvZnPI7wVGvZX3w4yrsDX0zm/3sUaO7/T/80tJGm/mCt320Zixb5ZMKZFhQd7k1C i7ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ag3x0D7n; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si2623156edw.135.2021.06.10.08.15.40; Thu, 10 Jun 2021 08:16:03 -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=@google.com header.s=20161025 header.b=Ag3x0D7n; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231528AbhFJPQ1 (ORCPT + 99 others); Thu, 10 Jun 2021 11:16:27 -0400 Received: from mail-qv1-f74.google.com ([209.85.219.74]:57097 "EHLO mail-qv1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbhFJPQV (ORCPT ); Thu, 10 Jun 2021 11:16:21 -0400 Received: by mail-qv1-f74.google.com with SMTP id n4-20020ad44a240000b029021cbf9668daso20494413qvz.23 for ; Thu, 10 Jun 2021 08:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=50MN4xWbgGEuj61j/i1zYF3JQQTtZRIXYmf3w+jlERk=; b=Ag3x0D7nRGpBBvEZR3it86HNKqQGY9JhtqCXASj/fZpv/iDJekhy/iFOYv77VsUmb1 JHUX95Jn0HLz4RV4BjBtqxOUZm+9JqbQ6iH0KX51E6wNAzXIM4GLQ+m+tQBR6TqbzpCb u6Y9jLykW6wLrD+Oo2TW/UGxzStizs2KHOKxi87Kr5YwksIACAiXehDlP5Do6tR0Qjv4 LzfFRnXzq1rR/+xCdKy3qo16HSXMxEJdiITuOOS3yvPxIFE+32vhvgEys70sF0bkOE3H fqf6nMeCVZqZkhN8o63p+xb/e2szVPAAG/UWRBiws7nKnHKAWgdJmxAyqpPGFgND9X1y hMjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=50MN4xWbgGEuj61j/i1zYF3JQQTtZRIXYmf3w+jlERk=; b=kRHJA2zJ/v73o9j4dCTRkF4OED4F5w3AMaOVj5kR6Q1x+HAymmgC1/3ft4bK7IkxCI lWCGetCaU9jDCfEFhGWE3NwbPhj8yJ/09X/sAhFYeUPuKlXq6Wmc+ePSTD8DNlexpHHJ owypd/rfmnuqa39S0XINJoq7Uy+l/7hT9brcoGF4cnK0/0R2aRSb6gm9yUTzZvr1Ax2C 95kSA3dLC2+W08Z8tjxpyoyC91igbr9nyX93G485WFVDLJCwU+9DokhEK5X/DWGrjyXa 651/lhyfzby+Ohwd8fx3Lwu20upNGi5xOHfvRaDz7KtgIcXJPvBpBzs6D59cc8iSHZDy kZQg== X-Gm-Message-State: AOAM532r9rIzm3A2AlPUHdDz3W/yF1eSC9F3mQjdnkRUUBz1zs7Hdzca xA/1lcroKWs9s0RcfVaSYq610xuy43y5 X-Received: from r2d2-qp.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:1652]) (user=qperret job=sendgmr) by 2002:a05:6214:1909:: with SMTP id er9mr41932qvb.13.1623337991973; Thu, 10 Jun 2021 08:13:11 -0700 (PDT) Date: Thu, 10 Jun 2021 15:13:03 +0000 Message-Id: <20210610151306.1789549-1-qperret@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.272.g935e593368-goog Subject: [PATCH v2 0/3] A few uclamp fixes From: Quentin Perret To: mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, qais.yousef@arm.com, rickyiu@google.com, wvw@google.com, patrick.bellasi@matbug.net, xuewen.yan94@gmail.com Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Quentin Perret Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This series groups together the v2 of a few patches I orignally sent independently from each others: https://lore.kernel.org/r/20210609143339.1194238-1-qperret@google.com https://lore.kernel.org/r/20210609170132.1386495-1-qperret@google.com https://lore.kernel.org/r/20210609175901.1423553-1-qperret@google.com But since they're all touching uclamp-related things, I figured I might as well group them in a series. The first one is a pure fix, and the two others change a bit the sched_setattr behaviour for uclamp to make it more convenient to use, and allow to put restrictions on the per-task API. Changes since v1: - fixed the CAP_SYS_NICE check to handle the uclamp_{min,max} = -1 cases correctly; - fixed commit message of UCLAMP_FLAG_IDLE patch. Thanks, Quentin Quentin Perret (3): sched: Fix UCLAMP_FLAG_IDLE setting sched: Skip priority checks with SCHED_FLAG_KEEP_PARAMS sched: Make uclamp changes depend on CAP_SYS_NICE kernel/sched/core.c | 64 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 11 deletions(-) -- 2.32.0.272.g935e593368-goog