Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp972516pxb; Thu, 28 Jan 2021 05:14:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLmYrTdKFT+OdkD9Wza/GUyL7x59gijj1GqvNbEfCcJT+lu4zzYKKZu9xxUYHN+zQ49Igx X-Received: by 2002:a50:d685:: with SMTP id r5mr14400132edi.248.1611839644719; Thu, 28 Jan 2021 05:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611839644; cv=none; d=google.com; s=arc-20160816; b=VO7TTTr1whOPlPSVby5BgYrmv6/RQhFdTt8LYho+TbzmOX6OGcxjEU53IQYPQoEnXG c3/vnEacV3H5E29lhyYaFb+W74eBaPYeg1cJFAZ0gZaLdA0sW9gAokej7tnp+l7B2DqI j06Wa9gd9OvoJKoyVaUwUr1XcoP/qPWCCQEubynKDq+NtzfGdw+Z4Z/LMFN3nz0QClYZ 9klxsVHStOe755MVoHvUmP77x8C3kBfzpmD+fa/Hu76z5zzjYg2Ahmf1yBXkHsqDO7e7 epohXU+UZa6vE+mMkllT01/xu1picbWTHXukdgF5XUSr0ege2X8MExMwO3/DTXHNOOSp c2Ag== 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 :message-id:date:subject:cc:to:from; bh=4cX+CsvFXF+QCBO7Myzo04n3dOgUUoiaC6Zcz4rBvWY=; b=NcDAvbIABR2WZ6XX1E86EhANaIz5bgRKtTZ93dkzvlVmJdv4WpNp+2G55T57BbjNan QW6mCWdxLhwPtV/BNK7i3p9puzvjfAhL3VFX2g2GQwlsHY1niATpfSfLyKZ5mG55kieB JhVwIvRbf71xR2+7wZbNOknLUIl0Jt2b8nlO8GJfNxro+YxAPdkLv99/zp1HOQczO2+A DFH+eETXut3ZTciPoQGGENE9HsElF0WI+F+De8JicHU8OTnXl2Kr77PSO5CdOATBCegK fwcUxsHh8cTed1PoacvooNCdnQdLhvMefLPzXE5PhzPjR01IYE9MU2Ogxu6c51BSlr/W R87g== 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 g21si2746108edu.180.2021.01.28.05.13.40; Thu, 28 Jan 2021 05:14:04 -0800 (PST) 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 S232042AbhA1NLi (ORCPT + 99 others); Thu, 28 Jan 2021 08:11:38 -0500 Received: from foss.arm.com ([217.140.110.172]:58672 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229684AbhA1NLh (ORCPT ); Thu, 28 Jan 2021 08:11:37 -0500 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 60D4231B; Thu, 28 Jan 2021 05:10:51 -0800 (PST) Received: from e125579.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F16853F719; Thu, 28 Jan 2021 05:10:48 -0800 (PST) From: Dietmar Eggemann To: Ingo Molnar , Peter Zijlstra , Jeremy Kerr , Arnd Bergmann , Michael Ellerman Cc: Juri Lelli , Vincent Guittot , Steven Rostedt , Hillf Danton , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 0/3] sched: Task priority related cleanups Date: Thu, 28 Jan 2021 14:10:37 +0100 Message-Id: <20210128131040.296856-1-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (1) Removing MAX_USER_RT_PRIO was already discussed here in April 2020: https://lkml.kernel.org/r/20200423094403.6f1d2b8d@gandalf.local.home (2) USER_PRIO() and related macros are not used anymore except in one case for powerpc where MAX_USER_PRIO can be replaced by NICE_WIDTH. Set_load_weight(), task_prio(), cpu_weight_nice_write_s64(), __update_max_tr() don't use USER_PRIO() but priority - MAX_RT_PRIO. (3) The function header of task_prio() needs an update. It looks ancient since it mentions a prio space [-16 ... 15] for mormal tasks. I can't figure out why this range is mentioned here? Maybe the influence of the 'sleep-bonus interactivity' feature which was removed by commit f3479f10c5d6 ("sched: remove the sleep-bonus interactivity code")? Dietmar Eggemann (3): sched: Remove MAX_USER_RT_PRIO sched: Remove USER_PRIO, TASK_USER_PRIO and MAX_USER_PRIO sched/core: Update task_prio() function header arch/powerpc/platforms/cell/spufs/sched.c | 2 +- include/linux/sched/prio.h | 18 +----------------- kernel/sched/core.c | 15 +++++++++------ kernel/sched/sched.h | 2 +- 4 files changed, 12 insertions(+), 25 deletions(-) -- 2.25.1