From patchwork Wed May 31 16:59:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juri Lelli X-Patchwork-Id: 100804 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp418508qge; Wed, 31 May 2017 10:03:14 -0700 (PDT) X-Received: by 10.84.208.236 with SMTP id c41mr91300886plj.95.1496250194736; Wed, 31 May 2017 10:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496250194; cv=none; d=google.com; s=arc-20160816; b=TeEKMN+g+T3JvAS4TRtVhtFQuNYI97BEgIUEDkY7k3WLavMSXZrrZqWzZ78t2ODSmX JEsNcsSIQnnLXe0jXHv3obDI12uQAeSpcBI7Hd6ATApZLEPw8pCYnEQ6bYeDP9/8oRIW gEV3PFoZVv7LyDEBSkm8gtNyUVLSWfEAl6a5dX5dosCySgSR9szMBvm/hamYZjR341Ly A92wVsZ7ZvdWEXYQDGHGeg/eD+CDZ0G2tybSBku3zUnKg5YbDCVhZlEe8ymGwtrIinMd kNrBzqWaC5ZAEw+0gi+YvNnvhJCUp/UGWxCGoG6B8cLXmXdNZWP4CGWFsuTO3alvTq1O xNrA== 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:arc-authentication-results; bh=k1KkWk3FY/VncnRn01Liz9a6j4ItJVKukWzQeRmsMuI=; b=XTVWaYRReX/Q7e5hG91+Bqq11qkWA5qnr3hatCZ76U4mrqhhAsG0bl6sEN0l6IGBqA uBTE1gQzlDPP/9FS2c3Q0QgYivWn9pzDj3GSNAI825IgblzLKHwjQvi9TAQ+6KAu3tvu AftegUcVlf7nVWc6GC4XG8hAzzBgAUliDSV2zmmwZEOwqEo2zMFaZJrCrkcNsbzX+RXI Ut1hb+gnWOiUyB3zYEAKcCvKKxH7BgCLO8iThLPQ/QefqiGx9Ay827pGZBN3+nnK/wEb IMloPH+Y6z4B2Dmh3WjYpqLK1lWyCLmWfokiuT78p9HIDy/bMpykcYHLcFaB++RjmZYp qjcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s68si17376996pfg.108.2017.05.31.10.03.14; Wed, 31 May 2017 10:03:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751417AbdEaRAk (ORCPT + 25 others); Wed, 31 May 2017 13:00:40 -0400 Received: from foss.arm.com ([217.140.101.70]:46816 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbdEaQ76 (ORCPT ); Wed, 31 May 2017 12:59:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DBD2C15BE; Wed, 31 May 2017 09:59:57 -0700 (PDT) Received: from cam-smtp0.cambridge.arm.com (e106622-lin.cambridge.arm.com [10.1.211.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 083B73F589; Wed, 31 May 2017 09:59:54 -0700 (PDT) From: Juri Lelli To: linux-kernel@vger.kernel.org Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@arm.linux.org.uk, sudeep.holla@arm.com, lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, morten.rasmussen@arm.com, dietmar.eggemann@arm.com, juri.lelli@arm.com, broonie@kernel.org, gregkh@linuxfoundation.org Subject: [PATCH v5 3/7] arm: remove wrong CONFIG_PROC_SYSCTL ifdef Date: Wed, 31 May 2017 17:59:27 +0100 Message-Id: <20170531165931.6945-4-juri.lelli@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170531165931.6945-1-juri.lelli@arm.com> References: <20170531165931.6945-1-juri.lelli@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sysfs cpu_capacity entry for each CPU has nothing to do with PROC_FS, nor it's in /proc/sys path. Remove such ifdef. Cc: Russell King Reported-and-suggested-by: Sudeep Holla Fixes: 7e5930aaef5d ('ARM: 8622/3: add sysfs cpu_capacity attribute') Signed-off-by: Juri Lelli Acked-by: Russell King --- arch/arm/kernel/topology.c | 2 -- 1 file changed, 2 deletions(-) -- 2.11.0 diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c index 1b8ec3054642..40dd35aa46d0 100644 --- a/arch/arm/kernel/topology.c +++ b/arch/arm/kernel/topology.c @@ -57,7 +57,6 @@ static void set_capacity_scale(unsigned int cpu, unsigned long capacity) per_cpu(cpu_scale, cpu) = capacity; } -#ifdef CONFIG_PROC_SYSCTL static ssize_t cpu_capacity_show(struct device *dev, struct device_attribute *attr, char *buf) @@ -114,7 +113,6 @@ static int register_cpu_capacity_sysctl(void) return 0; } subsys_initcall(register_cpu_capacity_sysctl); -#endif #ifdef CONFIG_OF struct cpu_efficiency {