Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3463221imm; Fri, 25 May 2018 06:13:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpsFvXuAZfQaQB9xsDB8dBEbtlURhLKtUM0uBIa9gRxhIBrhwO+I3qZYoX4t6Yg7zansKDG X-Received: by 2002:a63:7c43:: with SMTP id l3-v6mr2048250pgn.0.1527254024576; Fri, 25 May 2018 06:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527254024; cv=none; d=google.com; s=arc-20160816; b=Gwuwg1AZUCQYfAWUKzxXXrxwIKk9NNSlxCsbrcAFqmf/PYpremEjsK/LWT8zW/K+ur L+51bIX8JusJgfEKeNlKULTuDs1bqvg13RiFZQARZ1QgVc5GlNLcdLIC6642unB8B4Hv EJgr6Hzg3PGRxP9lgYRrdY/jSSQ2SYN5QVJ5/jcu4vBDh6b+pD4fBcrdXjhIvulu1bDA C4Yv4z35LP1U1ZuepCAydhWDAIT0U3yxxH0aRivHcPAycAsrFfiI1+dsNPCIgQLobAhl UTunxw1cIb24zCEYYUkNZHIU3xnQytpt3dfmdcxy0WRhz1k2wCleT+nKggFJ3xfwasd6 MCjQ== 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=6Izc5movT2lxdD5y5CtHVpwDbex1pTsZvvAwBSYatsM=; b=CV4OsX8578fFkFvTAyT8Kz0ehHZWQf7Vk7j0Y1LxMps4T8XFdSUgCQqVbrl3O9xN7X 3ok0ivlwU9PKIfN1dTTuEN7rF+FS7O6/LkuoTes7GL8NDIxXKwtcRXhLMso/JKUp+sHq 5+l55xMI7EzDPdpehVNOt55L+bojumTjoT8/grp4fagvxcq/U9AMfKOh2gsM1/fi1oCc 9W6TCWFlh8VmsPSjmXAdHDFklvd50tDcpqNH8v1VoOjb6d/32LJZz9EtMATsVh5V3fm5 9ZKC/IQPgEqPJLbqG6pk3YrGOaLdbT8oQPnaOIgqogt5DkK9Z5rfuHInOhw/o5TBXI+L jBFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OEPWVLMn; 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 n3-v6si23318560plp.550.2018.05.25.06.13.29; Fri, 25 May 2018 06:13:44 -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=OEPWVLMn; 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 S936060AbeEYNNH (ORCPT + 99 others); Fri, 25 May 2018 09:13:07 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50691 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935892AbeEYNMv (ORCPT ); Fri, 25 May 2018 09:12:51 -0400 Received: by mail-wm0-f67.google.com with SMTP id t11-v6so14336622wmt.0 for ; Fri, 25 May 2018 06:12:51 -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=6Izc5movT2lxdD5y5CtHVpwDbex1pTsZvvAwBSYatsM=; b=OEPWVLMnSonKtT+mLZ/fA6hVtIxclNQBoSXT+y9Q08qHZK9hDH6r7qSiNgCDmj3/En NRgnVhMfmOBul/HNzzm/r3RIQEuJ4Z5IWJzbaxlJOerRXml05r2obVvk0yn+LMwXX7Fi 8LSdE299IU5Q2Ao7KuK69tLhyzPsxgtGm80PQ= 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=6Izc5movT2lxdD5y5CtHVpwDbex1pTsZvvAwBSYatsM=; b=tUufgABDsbSjW+VuWED1Vjee7SeHA50V8Z5hPODZmDsTeDcp+UpwZ3zwLgJrgM5J3Y 9FVHS9rtArxjPMMvd2Q7xx3boJfi5FgA+ChdjsNEDIGYt1ovOWe3eSvxsdmwPjBs0eE8 mA7GsD3AzF3BH0HCA2ritm3nIU4b9WE/+xslwb7zOdAYpZZDQYh1wGwChi3WvUIuGiuf ipOMnooREiEhmLaK4gk26qEhRzKs3xCwXISI+PYqEGPHl1G2jmeM1ciwxAVnclf5FxTz HhTYWNg+P6ymhaQCT+PCxQQ3plU1iMZYBcTMNVwXU26QYvshZrOeGA55/EaY3qpEckpf ue6Q== X-Gm-Message-State: ALKqPwc/tcXqYhJ1hU+0NS2KrYsCpsRM6vUn9KQ7H+d+Ko7SbfMhZIdU 5Xq7FicrHX8Q0jhM32VL5cfVzA== X-Received: by 2002:a1c:e046:: with SMTP id x67-v6mr1598226wmg.154.1527253970234; Fri, 25 May 2018 06:12:50 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:a860:64b4:335b:c763]) by smtp.gmail.com with ESMTPSA id 4-v6sm9690948wmg.8.2018.05.25.06.12.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 May 2018 06:12:49 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net Cc: juri.lelli@redhat.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, viresh.kumar@linaro.org, valentin.schneider@arm.com, quentin.perret@arm.com, Vincent Guittot Subject: [PATCH v5 10/10] proc/sched: remove unused sched_time_avg_ms Date: Fri, 25 May 2018 15:12:31 +0200 Message-Id: <1527253951-22709-11-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> References: <1527253951-22709-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 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(-) 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 213d277..9894bc7 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -46,14 +46,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 1929db7..5d55782 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1704,7 +1704,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 6a78cf7..d77a959 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", -- 2.7.4