Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3762719pxk; Tue, 22 Sep 2020 01:41:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe2kUq0gG+SbM9B0wrTC2f1gjkzqxpK/+pTWTu8zQWGa5/g5zAZFF2JKzsSMFwLZXVXqXn X-Received: by 2002:a17:906:4b41:: with SMTP id j1mr3620712ejv.1.1600764061699; Tue, 22 Sep 2020 01:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600764061; cv=none; d=google.com; s=arc-20160816; b=rqNzGOXSU7xK3FJu81I+6995Xv1qW79hSF16yBS+yjx9lNjaPHlsaguXD9Tarbzn2s +nFuIlqQjUggvzojz3DIXpBWabYAMErfLexiRzGDJ+KUdTKSalflTu5jTkGZ7h0EFVQ2 Cp+C4U8JKLf8FilqsegKnEMHSWfeLLVWvz6o52c4CHVwvPs8uPdIwjWhhDQLS7VWbamX 8m6wOQqDWTxTreMFsG1wuwb3T+7tn2++8iArB25aPZZkHE6tdNfmjk6WflThDIm/hcPo 9N3gypsXqDfvqhdDZCsDzJWWLIRAm1TO1mBImeYZ0a+wINAuYSswQPJJ97OBHa8msaRe Dx1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=NFlCiN4X2Ti9mCVG4kMJpsvO50w0/L0M9509QYiJ5js=; b=aToHVwY8ec29fwYLKhR2q/4rh8+BWiOnMLJhcF2spRyiyNLO6tkaeiCqjwfWxhnOQF PH/HhvgEIEZTSCRXz/TxTD5zbgsdORzSRyB/txZTApSy7DAPNVR8MX4B+660c3wzUS4G wImK7Oh93EpXlRFBKE6gJqIN6jEAT+tZBqeLL76FFQELBvL0ySLf6nocDRv073+1g/JI yYzIYUUxgswnjZlvAOzO+bEo+xtE3G38NMqgd+xR8fYugT5uP78G6x4/kOznCSQYfBcX 0jVRNN6U33vp/tJVoJV5ZauitOxOVeD9qV8/IpOKcG6afb0fD49IXU17+mv8pc2H3TTL artA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si10005781ejr.574.2020.09.22.01.40.38; Tue, 22 Sep 2020 01:41:01 -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; 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 S1726503AbgIVIjq (ORCPT + 99 others); Tue, 22 Sep 2020 04:39:46 -0400 Received: from foss.arm.com ([217.140.110.172]:56964 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbgIVIjq (ORCPT ); Tue, 22 Sep 2020 04:39:46 -0400 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 34DE0113E; Tue, 22 Sep 2020 01:39:46 -0700 (PDT) Received: from dell3630.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F3BF43F718; Tue, 22 Sep 2020 01:39:43 -0700 (PDT) From: Dietmar Eggemann To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira Cc: linux-kernel@vger.kernel.org Subject: [PATCH 0/2] sched/cpupri: Cleanup cpu priority vector handling Date: Tue, 22 Sep 2020 10:39:32 +0200 Message-Id: <20200922083934.19275-1-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two of the 102 elements of the cpu priority vector, among them the one for MAX_PRIO (140) representing the IDLE task, are never used. Remove them and adapt the cpupri implementation accordingly. Dietmar Eggemann (2): sched/cpupri: Remove pri_to_cpu[CPUPRI_IDLE] sched/cpupri: Remove pri_to_cpu[1] kernel/sched/cpupri.c | 10 ++++------ kernel/sched/cpupri.h | 7 +++---- 2 files changed, 7 insertions(+), 10 deletions(-) -- 2.17.1