diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2017-06-23 05:25:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 11:32:05 -0400 |
commit | 3eeba1a28e0df150adec37d67b567de653cf285c (patch) | |
tree | cf6104d02311e52611169ad68e4af9bf4df374b0 /drivers/base/arch_topology.c | |
parent | c2a737eb2ea5682ffe63bc08003965496d6dc088 (diff) |
arch_topology: Don't break lines unnecessarily
There is no need of line break at few places, avoid them.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Juri Lelli <juri.lelli@arm.com>
Tested-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/arch_topology.c')
-rw-r--r-- | drivers/base/arch_topology.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index d1c33a85059e..0ad79b5cd56d 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c | |||
@@ -41,8 +41,7 @@ static ssize_t cpu_capacity_show(struct device *dev, | |||
41 | { | 41 | { |
42 | struct cpu *cpu = container_of(dev, struct cpu, dev); | 42 | struct cpu *cpu = container_of(dev, struct cpu, dev); |
43 | 43 | ||
44 | return sprintf(buf, "%lu\n", | 44 | return sprintf(buf, "%lu\n", topology_get_cpu_scale(NULL, cpu->dev.id)); |
45 | topology_get_cpu_scale(NULL, cpu->dev.id)); | ||
46 | } | 45 | } |
47 | 46 | ||
48 | static ssize_t cpu_capacity_store(struct device *dev, | 47 | static ssize_t cpu_capacity_store(struct device *dev, |
@@ -128,8 +127,7 @@ int __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) | |||
128 | if (cap_parsing_failed) | 127 | if (cap_parsing_failed) |
129 | return !ret; | 128 | return !ret; |
130 | 129 | ||
131 | ret = of_property_read_u32(cpu_node, | 130 | ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", |
132 | "capacity-dmips-mhz", | ||
133 | &cpu_capacity); | 131 | &cpu_capacity); |
134 | if (!ret) { | 132 | if (!ret) { |
135 | if (!raw_capacity) { | 133 | if (!raw_capacity) { |
@@ -181,8 +179,7 @@ init_cpu_capacity_callback(struct notifier_block *nb, | |||
181 | pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n", | 179 | pr_debug("cpu_capacity: init cpu capacity for CPUs [%*pbl] (to_visit=%*pbl)\n", |
182 | cpumask_pr_args(policy->related_cpus), | 180 | cpumask_pr_args(policy->related_cpus), |
183 | cpumask_pr_args(cpus_to_visit)); | 181 | cpumask_pr_args(cpus_to_visit)); |
184 | cpumask_andnot(cpus_to_visit, | 182 | cpumask_andnot(cpus_to_visit, cpus_to_visit, |
185 | cpus_to_visit, | ||
186 | policy->related_cpus); | 183 | policy->related_cpus); |
187 | for_each_cpu(cpu, policy->related_cpus) { | 184 | for_each_cpu(cpu, policy->related_cpus) { |
188 | raw_capacity[cpu] = topology_get_cpu_scale(NULL, cpu) * | 185 | raw_capacity[cpu] = topology_get_cpu_scale(NULL, cpu) * |