From patchwork Thu Jun 28 15:45:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 140456 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2343078ljj; Thu, 28 Jun 2018 08:45:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcDxNMRbTxGLyr3Rrd1HVnkwbBWLfawAnsAsGp749n8dFluXk8FPsaPOK8YqjQ7hqr3vywQ X-Received: by 2002:a62:211a:: with SMTP id h26-v6mr10630141pfh.133.1530200745844; Thu, 28 Jun 2018 08:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530200745; cv=none; d=google.com; s=arc-20160816; b=x2kDaLvBmcOR8uyjVHVSMwIq5Z4oBiGRoyll+dAnE22FmQByEmkWe7axzU1z/BORP6 /sqmpYKD7G3VabObw2Ely2UCSvaTzBlirfYl1Y/3X37DPbRhRI5bQugbhZ22WEotexcL OXLZUlF/1ixxVj5ekN8eVLy4aM9VNinmVd8pjxiVHE1+ZQBxeL9Q5qz4H3+RiTNSMSWj fhxHXO6QEMdV5yCTNyOygzRJ3QI/liyIFdqur+qSJlPQSIYpwh4a9c5kUxe/zWnpGqVU sAdCN8dUBJZcOGMDRxxnv4bndA13B+rVw164LeUD+SIccoQEKHdHs9s1HOzwxeptsFWO QkaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=JJYZdlqUxsEPbpnWuEmMYmdnaFoz3y9OMFnGg+MT9Uw=; b=ja1I7SrZS4UJbkjM/YaDcJpTAzUG31hZomKtnX6p9zUYPFIaIWwQoish/BJ5jdws8f 3PNMA+5zhyJRKeBtdx9zYoSKSf4xlNGAvwLoaNcZmJE5a9xRsN7bl+fT7vbZRPa5casj CD7boZx8aSp2V+b11LFiUguIOx6pFMleqQHW9WbfkDHJoNCzNHeFI7SVKO05rsuHY6a8 Ul3ZsenaIx3zEVAIT4t5TiBivS0pURUg1wRkXBvLg8DL/RA+auPSMK38GIVA2ENQSbnl mcJVjJCjJ3ulwKRjWWLyKGbpGoJVP85nnApH79jVqtAlJZ2nu40TaxuU2l5y8POcJCJB UFyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WJGMcBNq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q76-v6si6501234pgq.597.2018.06.28.08.45.45; Thu, 28 Jun 2018 08:45:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WJGMcBNq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030245AbeF1Ppn (ORCPT + 31 others); Thu, 28 Jun 2018 11:45:43 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:46569 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030230AbeF1Ppj (ORCPT ); Thu, 28 Jun 2018 11:45:39 -0400 Received: by mail-wr0-f193.google.com with SMTP id t6-v6so5987972wrq.13 for ; Thu, 28 Jun 2018 08:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JJYZdlqUxsEPbpnWuEmMYmdnaFoz3y9OMFnGg+MT9Uw=; b=WJGMcBNqZMU7HTVsVxDfPiQLDJVd5BAZLNqCo4GszX70olJDn87dGpOPzCdn8a6RxO wyJBCKOO87/Xvs+CVuBeWAcNtNJLfKmo0FOr9YouWH+ol4xccWG3Az5JwVghw7FhOp5a k/Mj/SlXXPUc8asrxXzva7cFdVdSYL6ByO+/s= 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; bh=JJYZdlqUxsEPbpnWuEmMYmdnaFoz3y9OMFnGg+MT9Uw=; b=gSe1DQCF8oSkyrtnT2np5TH30f7LwGZFxUIpgBxGmfvi1O1e5yLP+w9vU8Kd7oz+1d MQg8fOJZrNGNGrlyCB8ieVRlBTIsjKvlI/sgQYoruPAEmXOXRiD9ePS0pJxLjxVe2f7s xZfgjqYtLaVa2fAWdIBudu9qzbnaugY3KRdExYedX32/q1wiYT1heEvzUBvWbgXeIv7O 32kLRrvExUr7W2soeGhgFUCJqHRpwelc/VgE1Xt4pQ6k4UYYnh4L5XdDzXx5T4u+1WrQ c93Bf/uO8BBsL6NDtAQFWdT8GTunGMOdGe8DCUm1rbFnmXFtwZV3+OBcGb5o/GES/4QB UNaA== X-Gm-Message-State: APt69E3KsRjU3LfzI0yh93qXsLB/EFc6vKQYfx3EmwoDrYbLTu8QVBpL CGHMfIzte0Tfzdoyp28oAz/CBA== X-Received: by 2002:adf:9c12:: with SMTP id f18-v6mr9353815wrc.40.1530200737983; Thu, 28 Jun 2018 08:45:37 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:21c3:ec41:bec9:c38]) by smtp.gmail.com with ESMTPSA id i4-v6sm6202115wrq.28.2018.06.28.08.45.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jun 2018 08:45:37 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, juri.lelli@redhat.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, viresh.kumar@linaro.org, valentin.schneider@arm.com, patrick.bellasi@arm.com, joel@joelfernandes.org, daniel.lezcano@linaro.org, quentin.perret@arm.com, luca.abeni@santannapisa.it, claudio@evidence.eu.com, Vincent Guittot , Ingo Molnar , Kees Cook , "Luis R. Rodriguez" Subject: [PATCH 11/11] proc/sched: remove unused sched_time_avg_ms Date: Thu, 28 Jun 2018 17:45:14 +0200 Message-Id: <1530200714-4504-12-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530200714-4504-1-git-send-email-vincent.guittot@linaro.org> References: <1530200714-4504-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org /proc/sys/kernel/sched_time_avg_ms entry is not used anywhere. Remove it Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Kees Cook Cc: "Luis R. Rodriguez" Signed-off-by: Vincent Guittot --- include/linux/sched/sysctl.h | 1 - kernel/sched/core.c | 8 -------- kernel/sched/sched.h | 1 - kernel/sysctl.c | 8 -------- 4 files changed, 18 deletions(-) -- 2.7.4 Reviewed-by: Luis R. Rodriguez diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h index 1c1a151..913488d 100644 --- a/include/linux/sched/sysctl.h +++ b/include/linux/sched/sysctl.h @@ -40,7 +40,6 @@ extern unsigned int sysctl_numa_balancing_scan_size; #ifdef CONFIG_SCHED_DEBUG extern __read_mostly unsigned int sysctl_sched_migration_cost; extern __read_mostly unsigned int sysctl_sched_nr_migrate; -extern __read_mostly unsigned int sysctl_sched_time_avg; int sched_proc_update_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, diff --git a/kernel/sched/core.c b/kernel/sched/core.c index e9aae7f..6935691 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -48,14 +48,6 @@ const_debug unsigned int sysctl_sched_features = const_debug unsigned int sysctl_sched_nr_migrate = 32; /* - * period over which we average the RT time consumption, measured - * in ms. - * - * default: 1s - */ -const_debug unsigned int sysctl_sched_time_avg = MSEC_PER_SEC; - -/* * period over which we measure -rt task CPU usage in us. * default: 1s */ diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index c71ea81..47b9175 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1706,7 +1706,6 @@ extern void deactivate_task(struct rq *rq, struct task_struct *p, int flags); extern void check_preempt_curr(struct rq *rq, struct task_struct *p, int flags); -extern const_debug unsigned int sysctl_sched_time_avg; extern const_debug unsigned int sysctl_sched_nr_migrate; extern const_debug unsigned int sysctl_sched_migration_cost; diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 2d9837c..f22f76b 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -368,14 +368,6 @@ static struct ctl_table kern_table[] = { .mode = 0644, .proc_handler = proc_dointvec, }, - { - .procname = "sched_time_avg_ms", - .data = &sysctl_sched_time_avg, - .maxlen = sizeof(unsigned int), - .mode = 0644, - .proc_handler = proc_dointvec_minmax, - .extra1 = &one, - }, #ifdef CONFIG_SCHEDSTATS { .procname = "sched_schedstats",