Skip to content

Commit f70b281

Browse files
Juri Lelligregkh
authored andcommitted
arm: remove wrong CONFIG_PROC_SYSCTL ifdef
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 <linux@arm.linux.org.uk> Reported-and-suggested-by: Sudeep Holla <sudeep.holla@arm.com> Fixes: 7e5930a ('ARM: 8622/3: add sysfs cpu_capacity attribute') Signed-off-by: Juri Lelli <juri.lelli@arm.com> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 95adb4e commit f70b281

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎arch/arm/kernel/topology.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ static void set_capacity_scale(unsigned int cpu, unsigned long capacity)
5757
per_cpu(cpu_scale, cpu) = capacity;
5858
}
5959

60-
#ifdef CONFIG_PROC_SYSCTL
6160
static ssize_t cpu_capacity_show(struct device *dev,
6261
struct device_attribute *attr,
6362
char *buf)
@@ -114,7 +113,6 @@ static int register_cpu_capacity_sysctl(void)
114113
return 0;
115114
}
116115
subsys_initcall(register_cpu_capacity_sysctl);
117-
#endif
118116

119117
#ifdef CONFIG_OF
120118
struct cpu_efficiency {

0 commit comments

Comments
 (0)